2019-05-15 18:10:18 +02:00
|
|
|
BOOKROOT = ..
|
2019-05-15 18:56:59 +02:00
|
|
|
TOOLSDIR = $(BOOKROOT)/tools/bin
|
2019-05-15 18:10:18 +02:00
|
|
|
PSDIR = $(BOOKROOT)/ps
|
|
|
|
|
|
|
|
YAPP = $(TOOLSDIR)/yapp
|
|
|
|
MAKEMANIFEST = $(TOOLSDIR)/makemanifest
|
|
|
|
PSGEN = env BOOKROOT=$(BOOKROOT) $(TOOLSDIR)/psgen
|
|
|
|
INCLUDERES = (cd $(PSDIR); includeres)
|
2019-05-15 16:55:03 +02:00
|
|
|
|
2019-05-15 18:12:14 +02:00
|
|
|
code.pdf: code.ps
|
|
|
|
ps2pdf code.ps
|
|
|
|
|
2019-05-15 16:55:03 +02:00
|
|
|
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 $<
|
2019-05-15 18:10:18 +02:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f `cat .gitignore`
|