docs/master
view makefile @ 149:1b80cc146932
grap: Improved the number-of-switches diagram.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Thu, 05 Jul 2012 21:06:57 +0200 |
parents | 8c56dac46efe |
children | 472aa79f9b6f |
line source
1 NAME = thesis
2 CHAPS = style front.roff dedication.roff abstract.roff toc.roff \
3 preface.roff intro.roff discussion.roff future.roff refs.roff \
4 official.roff colophon.roff
5 PDFFLAGS = -sPAPERSIZE=a4 -dPDFSETTINGS=/prepress
7 all: $(NAME).ps
9 $(NAME).ps: $(CHAPS) makefile bib toc.ig
10 export TROFFONTS=fonts REFER=bib;\
11 soelim $(CHAPS) | refer -e -P -sLAD -l,2 -k | \
12 grap | pic | troff -Tps -ms 2>err.ig | dpost >$@
14 err.ig: $(CHAPS)
15 export TROFFONTS=fonts REFER=bib;\
16 soelim $(CHAPS) | refer -e -P -sLAD -l,2 -k | \
17 grap | pic | troff -Tps -ms -rZ1 -z 2>$@
19 toc.ig: err.ig
20 sed -n '/^TOC____/s///p' err.ig >$@
22 pdf: $(NAME).pdf
23 $(NAME).pdf: $(NAME).ps
24 ps2pdf $(PDFFLAGS) $(NAME).ps 2>/dev/null
26 book: book.pdf
27 book.pdf: book.ps
28 ps2pdf $(PDFFLAGS) book.ps 2>/dev/null
29 book.ps: $(NAME).ps
30 psbook -s16 $(NAME).ps | psnup -2 -m2mm >$@
32 clean:
33 rm -f $(NAME).ps $(NAME).pdf book.ps book.pdf
34 rm -f *.ig
36 spell:
37 sort -u -o terms terms
38 spell +terms *.roff | egrep -v '[0-9a-f]{40}'