ocr-tools/example/Makefile

31 lines
601 B
Makefile
Raw Normal View History

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 \
2019-05-16 00:26:26 +02:00
| $(INCLUDERES) > code.ps
2019-05-15 16:55:03 +02:00
books:
ln -s $(BOOKROOT) books
MANIFEST: filelist
$(MAKEMANIFEST) $< > $@
gv%: %.ps
gv $<
2019-05-15 18:10:18 +02:00
clean:
2019-05-16 00:26:26 +02:00
rm -f MANIFEST books pagenums code.ps
cleaner:
2019-05-15 18:10:18 +02:00
rm -f `cat .gitignore`