docs/master

view makefile @ 150:472aa79f9b6f

bib: Split bib into RFCs and the rest.
author markus schnalke <meillo@marmaro.de>
date Fri, 06 Jul 2012 10:13:55 +0200
parents e7b5e465a8e0
children ff3a6a0e6255
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
6 REFER = refer -n -p bib -p rfcs -e -P -sLAD -l,2 -k
8 all: $(NAME).ps
10 $(NAME).ps: $(CHAPS) makefile bib rfcs toc.ig
11 export TROFFONTS=fonts;\
12 soelim $(CHAPS) | $(REFER) | \
13 grap | pic | troff -Tps -ms 2>err.ig | dpost >$@
15 err.ig: $(CHAPS)
16 export TROFFONTS=fonts;\
17 soelim $(CHAPS) | $(REFER) | \
18 grap | pic | troff -Tps -ms -rZ1 -z 2>$@
20 toc.ig: err.ig
21 sed -n '/^TOC____/s///p' err.ig >$@
23 pdf: $(NAME).pdf
24 $(NAME).pdf: $(NAME).ps
25 ps2pdf $(PDFFLAGS) $(NAME).ps 2>/dev/null
27 book: book.pdf
28 book.pdf: book.ps
29 ps2pdf $(PDFFLAGS) book.ps 2>/dev/null
30 book.ps: $(NAME).ps
31 psbook -s16 $(NAME).ps | psnup -2 -m2mm >$@
33 clean:
34 rm -f $(NAME).ps $(NAME).pdf book.ps book.pdf
35 rm -f *.ig
37 spell:
38 sort -u -o terms terms
39 spell +terms *.roff | egrep -v '[0-9a-f]{40}'