docs/master

view makefile @ 225:d83ab437e3a6

Removed FIXMEs (XXX) in the sources, those that I won't fix.
author markus schnalke <meillo@marmaro.de>
date Sun, 15 Jul 2012 20:00:14 +0200
parents 95257474a123
children eba3744fb238
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 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 | \
15 troff -Tps -ms -mpictures 2>err.ig | dpost >$@
17 err.ig: $(CHAPS)
18 export TROFFONTS=fonts;\
19 soelim $(CHAPS) | $(REFER) | \
20 tbl | grap | pic | \
21 troff -Tps -ms -mpictures -rZ1 -z 2>$@
23 toc.ig: err.ig
24 sed -n '/^TOC____/s///p' err.ig >$@
26 refs.ig: err.ig
27 mkdir -p refs
28 awk -F '\t' '/^REF____/{ \
29 sub(/^REF____/,""); \
30 printf $$2 >"refs/"$$1; close("refs/$$1"); \
31 printf $$3 >"refs/"$$1".page"; close("refs/$$1.page");\
32 }' err.ig
34 pdf: $(NAME).pdf
35 $(NAME).pdf: $(NAME).ps
36 ps2pdf $(PDFFLAGS) $(NAME).ps 2>/dev/null
38 book: book.pdf
39 book.pdf: book.ps
40 ps2pdf $(PDFFLAGS) book.ps 2>/dev/null
41 book.ps: $(NAME).ps
42 psbook -s16 $(NAME).ps | psnup -2 -m2mm >$@
44 clean:
45 rm -f $(NAME).ps $(NAME).pdf book.ps book.pdf
46 rm -rf refs
47 rm -f *.ig
49 spell:
50 sort -u -o terms terms
51 spell +terms *.roff | egrep -v '[0-9a-f]{40}'