docs/master

annotate 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
rev   line source
meillo@0 1 NAME = thesis
meillo@79 2 CHAPS = style front.roff dedication.roff abstract.roff toc.roff \
meillo@147 3 preface.roff intro.roff discussion.roff future.roff refs.roff \
meillo@147 4 official.roff colophon.roff
meillo@0 5 PDFFLAGS = -sPAPERSIZE=a4 -dPDFSETTINGS=/prepress
meillo@0 6
meillo@0 7 all: $(NAME).ps
meillo@0 8
meillo@113 9 $(NAME).ps: $(CHAPS) makefile bib toc.ig
meillo@33 10 export TROFFONTS=fonts REFER=bib;\
meillo@92 11 soelim $(CHAPS) | refer -e -P -sLAD -l,2 -k | \
meillo@92 12 grap | pic | troff -Tps -ms 2>err.ig | dpost >$@
meillo@79 13
meillo@79 14 err.ig: $(CHAPS)
meillo@79 15 export TROFFONTS=fonts REFER=bib;\
meillo@92 16 soelim $(CHAPS) | refer -e -P -sLAD -l,2 -k | \
meillo@92 17 grap | pic | troff -Tps -ms -rZ1 -z 2>$@
meillo@79 18
meillo@79 19 toc.ig: err.ig
meillo@113 20 sed -n '/^TOC____/s///p' err.ig >$@
meillo@0 21
meillo@0 22 pdf: $(NAME).pdf
meillo@0 23 $(NAME).pdf: $(NAME).ps
meillo@115 24 ps2pdf $(PDFFLAGS) $(NAME).ps 2>/dev/null
meillo@0 25
meillo@0 26 book: book.pdf
meillo@0 27 book.pdf: book.ps
meillo@115 28 ps2pdf $(PDFFLAGS) book.ps 2>/dev/null
meillo@0 29 book.ps: $(NAME).ps
meillo@0 30 psbook -s16 $(NAME).ps | psnup -2 -m2mm >$@
meillo@0 31
meillo@0 32 clean:
meillo@0 33 rm -f $(NAME).ps $(NAME).pdf book.ps book.pdf
meillo@79 34 rm -f *.ig
meillo@111 35
meillo@111 36 spell:
meillo@121 37 sort -u -o terms terms
meillo@111 38 spell +terms *.roff | egrep -v '[0-9a-f]{40}'