BOOKROOT = .. TOOLSDIR = $(BOOKROOT)/tools/bin PSDIR = $(BOOKROOT)/ps YAPP = $(TOOLSDIR)/yapp MAKEMANIFEST = $(TOOLSDIR)/makemanifest PSGEN = env BOOKROOT=$(BOOKROOT) $(TOOLSDIR)/psgen INCLUDERES = (cd $(PSDIR); includeres) code.pdf: code.ps ps2pdf code.ps code.ps pagenums: filelist footer.ps MANIFEST books $(PSGEN) -P2 -l3 -DfooterFile=footer.ps filelist pagenums 1 \ | $(INCLUDERES) > code.ps books: ln -s $(BOOKROOT) books MANIFEST: filelist $(MAKEMANIFEST) $< > $@ gv%: %.ps gv $< clean: rm -f `cat .gitignore`