docs/master
view makefile @ 133:02660c14f6a8
Further re-ordering of the sections.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Tue, 03 Jul 2012 16:50:41 +0200 |
parents | edbc6e1dc636 |
children | e7b5e465a8e0 |
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 PDFFLAGS = -sPAPERSIZE=a4 -dPDFSETTINGS=/prepress
6 all: $(NAME).ps
8 $(NAME).ps: $(CHAPS) makefile bib toc.ig
9 export TROFFONTS=fonts REFER=bib;\
10 soelim $(CHAPS) | refer -e -P -sLAD -l,2 -k | \
11 grap | pic | troff -Tps -ms 2>err.ig | dpost >$@
13 err.ig: $(CHAPS)
14 export TROFFONTS=fonts REFER=bib;\
15 soelim $(CHAPS) | refer -e -P -sLAD -l,2 -k | \
16 grap | pic | troff -Tps -ms -rZ1 -z 2>$@
18 toc.ig: err.ig
19 sed -n '/^TOC____/s///p' err.ig >$@
21 pdf: $(NAME).pdf
22 $(NAME).pdf: $(NAME).ps
23 ps2pdf $(PDFFLAGS) $(NAME).ps 2>/dev/null
25 book: book.pdf
26 book.pdf: book.ps
27 ps2pdf $(PDFFLAGS) book.ps 2>/dev/null
28 book.ps: $(NAME).ps
29 psbook -s16 $(NAME).ps | psnup -2 -m2mm >$@
31 clean:
32 rm -f $(NAME).ps $(NAME).pdf book.ps book.pdf
33 rm -f *.ig
35 spell:
36 sort -u -o terms terms
37 spell +terms *.roff | egrep -v '[0-9a-f]{40}'