docs/master
annotate makefile @ 175:846f6a67f44e
style: Fixed indent for verbatim text.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Tue, 10 Jul 2012 18:18:08 +0200 |
parents | 5520bbde3767 |
children | 25d05add0d97 |
rev | line source |
---|---|
meillo@0 | 1 NAME = thesis |
meillo@174 | 2 CHAPS = style front.roff dedication.roff toc.roff \ |
meillo@162 | 3 preface.roff intro.roff discussion.roff summary.roff refs.roff \ |
meillo@147 | 4 official.roff colophon.roff |
meillo@0 | 5 PDFFLAGS = -sPAPERSIZE=a4 -dPDFSETTINGS=/prepress |
meillo@150 | 6 REFER = refer -n -p bib -p rfcs -e -P -sLAD -l,2 -k |
meillo@0 | 7 |
meillo@0 | 8 all: $(NAME).ps |
meillo@0 | 9 |
meillo@156 | 10 $(NAME).ps: $(CHAPS) makefile bib rfcs toc.ig refs.ig |
meillo@150 | 11 export TROFFONTS=fonts;\ |
meillo@150 | 12 soelim $(CHAPS) | $(REFER) | \ |
meillo@92 | 13 grap | pic | troff -Tps -ms 2>err.ig | dpost >$@ |
meillo@79 | 14 |
meillo@79 | 15 err.ig: $(CHAPS) |
meillo@150 | 16 export TROFFONTS=fonts;\ |
meillo@150 | 17 soelim $(CHAPS) | $(REFER) | \ |
meillo@92 | 18 grap | pic | troff -Tps -ms -rZ1 -z 2>$@ |
meillo@79 | 19 |
meillo@79 | 20 toc.ig: err.ig |
meillo@113 | 21 sed -n '/^TOC____/s///p' err.ig >$@ |
meillo@0 | 22 |
meillo@156 | 23 refs.ig: err.ig |
meillo@156 | 24 mkdir -p refs |
meillo@151 | 25 awk '/^REF____/{ \ |
meillo@151 | 26 sub(/^REF____/,""); \ |
meillo@151 | 27 printf $$2 >"refs/"$$1; close("refs/$$1"); \ |
meillo@151 | 28 printf $$3 >"refs/"$$1".page"; close("refs/$$1.page");\ |
meillo@151 | 29 }' err.ig |
meillo@151 | 30 |
meillo@0 | 31 pdf: $(NAME).pdf |
meillo@0 | 32 $(NAME).pdf: $(NAME).ps |
meillo@115 | 33 ps2pdf $(PDFFLAGS) $(NAME).ps 2>/dev/null |
meillo@0 | 34 |
meillo@0 | 35 book: book.pdf |
meillo@0 | 36 book.pdf: book.ps |
meillo@115 | 37 ps2pdf $(PDFFLAGS) book.ps 2>/dev/null |
meillo@0 | 38 book.ps: $(NAME).ps |
meillo@0 | 39 psbook -s16 $(NAME).ps | psnup -2 -m2mm >$@ |
meillo@0 | 40 |
meillo@0 | 41 clean: |
meillo@0 | 42 rm -f $(NAME).ps $(NAME).pdf book.ps book.pdf |
meillo@156 | 43 rm -rf refs |
meillo@79 | 44 rm -f *.ig |
meillo@111 | 45 |
meillo@111 | 46 spell: |
meillo@121 | 47 sort -u -o terms terms |
meillo@111 | 48 spell +terms *.roff | egrep -v '[0-9a-f]{40}' |