docs/bib-ref2
view makefile @ 13:5a80408f6a50
text: minor stuff on figure
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Wed, 26 Feb 2014 07:50:31 +0100 |
parents | debf9b807f5f |
children | 3867f0a65d91 |
line source
1 NAME = ref2
2 CHAPS = style front.roff toc.roff text.roff refs.roff cc0.roff #decl.roff
3 BIB = bib
4 PDFFLAGS = -sPAPERSIZE=a4 -dPDFSETTINGS=/prepress
5 REFER = refer -n -p bib -e -P -sLAD -a # -l,2 -k
7 all: $(NAME).ps
9 $(NAME).ps: $(CHAPS) makefile $(BIB) toc.ig refs.ig
10 export TROFFONTS=fonts;\
11 soelim $(CHAPS) | $(REFER) | pic | \
12 troff -Tps -ms 2>err.ig | dpost >$@
14 err.ig: $(CHAPS)
15 export TROFFONTS=fonts;\
16 soelim $(CHAPS) | $(REFER) | pic | \
17 troff -Tps -ms -rZ1 -z 2>$@
19 toc.ig: err.ig
20 sed -n '/^TOC____/s///p' err.ig >$@
22 refs.ig: err.ig
23 mkdir -p refs
24 awk -F '\t' '/^REF____/{ \
25 sub(/^REF____/,""); \
26 printf $$2 >"refs/"$$1; close("refs/$$1"); \
27 printf $$3 >"refs/"$$1".page"; close("refs/$$1.page");\
28 }' err.ig
30 pdf: $(NAME).pdf
31 $(NAME).pdf: $(NAME).ps
32 ps2pdf $(PDFFLAGS) $(NAME).ps 2>/dev/null
34 book: book.pdf
35 book.pdf: book.ps
36 ps2pdf $(PDFFLAGS) book.ps 2>/dev/null
37 book.ps: $(NAME).ps
38 psbook -s16 $(NAME).ps | psnup -2 -m2mm >$@
40 clean:
41 rm -f $(NAME).ps $(NAME).pdf book.ps book.pdf
42 rm -rf refs
43 rm -f *.ig