docs/master
view makefile @ 203:19daefb6230d
Minor change in wording.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Thu, 12 Jul 2012 09:34:38 +0200 |
parents | 05a243dffaca |
children | 95257474a123 |
line source
1 NAME = thesis
2 CHAPS = style front.roff dedication.roff toc.roff \
3 preface.roff intro.roff discussion.roff summary.roff tools.roff \
4 refs.roff rfcs.roff official.roff colophon.roff
5 BIB = bib *.bib
6 PDFFLAGS = -sPAPERSIZE=a4 -dPDFSETTINGS=/prepress
7 REFER = refer -n -p bib -p mail.bib -p web.bib -e -P -sLAD -l,2 -k
9 all: $(NAME).ps
11 $(NAME).ps: $(CHAPS) makefile $(BIB) toc.ig refs.ig
12 export TROFFONTS=fonts;\
13 soelim $(CHAPS) | $(REFER) | \
14 tbl | grap | pic | troff -Tps -ms 2>err.ig | dpost >$@
16 err.ig: $(CHAPS)
17 export TROFFONTS=fonts;\
18 soelim $(CHAPS) | $(REFER) | \
19 tbl | grap | pic | troff -Tps -ms -rZ1 -z 2>$@
21 toc.ig: err.ig
22 sed -n '/^TOC____/s///p' err.ig >$@
24 refs.ig: err.ig
25 mkdir -p refs
26 awk -F '\t' '/^REF____/{ \
27 sub(/^REF____/,""); \
28 printf $$2 >"refs/"$$1; close("refs/$$1"); \
29 printf $$3 >"refs/"$$1".page"; close("refs/$$1.page");\
30 }' err.ig
32 pdf: $(NAME).pdf
33 $(NAME).pdf: $(NAME).ps
34 ps2pdf $(PDFFLAGS) $(NAME).ps 2>/dev/null
36 book: book.pdf
37 book.pdf: book.ps
38 ps2pdf $(PDFFLAGS) book.ps 2>/dev/null
39 book.ps: $(NAME).ps
40 psbook -s16 $(NAME).ps | psnup -2 -m2mm >$@
42 clean:
43 rm -f $(NAME).ps $(NAME).pdf book.ps book.pdf
44 rm -rf refs
45 rm -f *.ig
47 spell:
48 sort -u -o terms terms
49 spell +terms *.roff | egrep -v '[0-9a-f]{40}'