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