28 lines
548 B
Makefile
28 lines
548 B
Makefile
BOOKROOT = ..
|
|
TOOLSDIR = $(BOOKROOT)/tools
|
|
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`
|