2019-05-15 16:55:03 +02:00
|
|
|
BOOKROOT=..
|
|
|
|
TOOLSDIR=$(BOOKROOT)/tools
|
|
|
|
PSDIR=$(BOOKROOT)/ps
|
|
|
|
YAPP=$(TOOLSDIR)/yapp
|
|
|
|
MAKEMANIFEST=$(TOOLSDIR)/makemanifest
|
|
|
|
PSGEN=BOOKROOT=$(BOOKROOT) $(TOOLSDIR)/psgen
|
|
|
|
INCLUDERES=(cd $(PSDIR); includeres)
|
|
|
|
|
|
|
|
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) $< > $@
|
|
|
|
|
|
|
|
clean:
|
2019-05-15 17:00:37 +02:00
|
|
|
rm -f `cat .gitignore`
|
2019-05-15 16:55:03 +02:00
|
|
|
|
|
|
|
gv%: %.ps
|
|
|
|
gv $<
|