Mercurial > docs > master
comparison makefile @ 79:f3c95ee96cc4
Moved TOC from end to beginning; extended makefile.
The TOC generation concept and idea was inspired by the book
``UNIX Text Processing''.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Wed, 06 Jun 2012 10:56:14 +0200 |
parents | 3e70450336a4 |
children | e6f95015ba61 |
comparison
equal
deleted
inserted
replaced
78:64f177ca2af1 | 79:f3c95ee96cc4 |
---|---|
1 NAME = thesis | 1 NAME = thesis |
2 CHAPS = style front.roff dedication.roff abstract.roff preface.roff \ | 2 CHAPS = style front.roff dedication.roff abstract.roff toc.roff \ |
3 ch*.roff refs.roff toc.roff | 3 preface.roff ch*.roff refs.roff |
4 PDFFLAGS = -sPAPERSIZE=a4 -dPDFSETTINGS=/prepress | 4 PDFFLAGS = -sPAPERSIZE=a4 -dPDFSETTINGS=/prepress |
5 | 5 |
6 all: $(NAME).ps | 6 all: $(NAME).ps |
7 | 7 |
8 $(NAME).ps: $(CHAPS) makefile bib | 8 $(NAME).ps: $(CHAPS) makefile bib |
9 export TROFFONTS=fonts REFER=bib;\ | 9 export TROFFONTS=fonts REFER=bib;\ |
10 cat $(CHAPS) | refer -e -P -sLAD -l,2 -k | troff -Tps -ms | dpost >$@ | 10 cat $(CHAPS) | refer -e -P -sLAD -l,2 -k | \ |
11 troff -Tps -ms 2>err.ig | dpost >$@ | |
12 | |
13 err.ig: $(CHAPS) | |
14 export TROFFONTS=fonts REFER=bib;\ | |
15 cat $(CHAPS) | refer -e -P -sLAD -l,2 -k | \ | |
16 troff -Tps -ms -rZ1 -z 2>$@ | |
17 | |
18 toc.roff: toc.ig | |
19 toc.ig: err.ig | |
20 sed -n '/^TOC____/s///p' $< >$@ | |
11 | 21 |
12 pdf: $(NAME).pdf | 22 pdf: $(NAME).pdf |
13 $(NAME).pdf: $(NAME).ps | 23 $(NAME).pdf: $(NAME).ps |
14 ps2pdf $(PDFFLAGS) $(NAME).ps | 24 ps2pdf $(PDFFLAGS) $(NAME).ps |
15 | 25 |
19 book.ps: $(NAME).ps | 29 book.ps: $(NAME).ps |
20 psbook -s16 $(NAME).ps | psnup -2 -m2mm >$@ | 30 psbook -s16 $(NAME).ps | psnup -2 -m2mm >$@ |
21 | 31 |
22 clean: | 32 clean: |
23 rm -f $(NAME).ps $(NAME).pdf book.ps book.pdf | 33 rm -f $(NAME).ps $(NAME).pdf book.ps book.pdf |
24 rm -f bib.ig | 34 rm -f *.ig |