annotate makefile @ 83:99ab58dc891f

New macro: .VF to read verbatim text from file. Outsourced the MH session.
author markus schnalke <meillo@marmaro.de>
date Wed, 06 Jun 2012 18:11:35 +0200
parents f3c95ee96cc4
children e6f95015ba61
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
dc2bfef4cda7 Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff changeset
1 NAME = thesis
79
f3c95ee96cc4 Moved TOC from end to beginning; extended makefile.
markus schnalke <meillo@marmaro.de>
parents: 33
diff changeset
2 CHAPS = style front.roff dedication.roff abstract.roff toc.roff \
f3c95ee96cc4 Moved TOC from end to beginning; extended makefile.
markus schnalke <meillo@marmaro.de>
parents: 33
diff changeset
3 preface.roff ch*.roff refs.roff
0
dc2bfef4cda7 Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff changeset
4 PDFFLAGS = -sPAPERSIZE=a4 -dPDFSETTINGS=/prepress
dc2bfef4cda7 Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff changeset
5
dc2bfef4cda7 Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff changeset
6 all: $(NAME).ps
dc2bfef4cda7 Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff changeset
7
33
3e70450336a4 refer: Added refer; the bib contains various entries already.
markus schnalke <meillo@marmaro.de>
parents: 0
diff changeset
8 $(NAME).ps: $(CHAPS) makefile bib
3e70450336a4 refer: Added refer; the bib contains various entries already.
markus schnalke <meillo@marmaro.de>
parents: 0
diff changeset
9 export TROFFONTS=fonts REFER=bib;\
79
f3c95ee96cc4 Moved TOC from end to beginning; extended makefile.
markus schnalke <meillo@marmaro.de>
parents: 33
diff changeset
10 cat $(CHAPS) | refer -e -P -sLAD -l,2 -k | \
f3c95ee96cc4 Moved TOC from end to beginning; extended makefile.
markus schnalke <meillo@marmaro.de>
parents: 33
diff changeset
11 troff -Tps -ms 2>err.ig | dpost >$@
f3c95ee96cc4 Moved TOC from end to beginning; extended makefile.
markus schnalke <meillo@marmaro.de>
parents: 33
diff changeset
12
f3c95ee96cc4 Moved TOC from end to beginning; extended makefile.
markus schnalke <meillo@marmaro.de>
parents: 33
diff changeset
13 err.ig: $(CHAPS)
f3c95ee96cc4 Moved TOC from end to beginning; extended makefile.
markus schnalke <meillo@marmaro.de>
parents: 33
diff changeset
14 export TROFFONTS=fonts REFER=bib;\
f3c95ee96cc4 Moved TOC from end to beginning; extended makefile.
markus schnalke <meillo@marmaro.de>
parents: 33
diff changeset
15 cat $(CHAPS) | refer -e -P -sLAD -l,2 -k | \
f3c95ee96cc4 Moved TOC from end to beginning; extended makefile.
markus schnalke <meillo@marmaro.de>
parents: 33
diff changeset
16 troff -Tps -ms -rZ1 -z 2>$@
f3c95ee96cc4 Moved TOC from end to beginning; extended makefile.
markus schnalke <meillo@marmaro.de>
parents: 33
diff changeset
17
f3c95ee96cc4 Moved TOC from end to beginning; extended makefile.
markus schnalke <meillo@marmaro.de>
parents: 33
diff changeset
18 toc.roff: toc.ig
f3c95ee96cc4 Moved TOC from end to beginning; extended makefile.
markus schnalke <meillo@marmaro.de>
parents: 33
diff changeset
19 toc.ig: err.ig
f3c95ee96cc4 Moved TOC from end to beginning; extended makefile.
markus schnalke <meillo@marmaro.de>
parents: 33
diff changeset
20 sed -n '/^TOC____/s///p' $< >$@
0
dc2bfef4cda7 Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff changeset
21
dc2bfef4cda7 Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff changeset
22 pdf: $(NAME).pdf
dc2bfef4cda7 Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff changeset
23 $(NAME).pdf: $(NAME).ps
dc2bfef4cda7 Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff changeset
24 ps2pdf $(PDFFLAGS) $(NAME).ps
dc2bfef4cda7 Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff changeset
25
dc2bfef4cda7 Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff changeset
26 book: book.pdf
dc2bfef4cda7 Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff changeset
27 book.pdf: book.ps
dc2bfef4cda7 Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff changeset
28 ps2pdf $(PDFFLAGS) book.ps
dc2bfef4cda7 Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff changeset
29 book.ps: $(NAME).ps
dc2bfef4cda7 Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff changeset
30 psbook -s16 $(NAME).ps | psnup -2 -m2mm >$@
dc2bfef4cda7 Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff changeset
31
dc2bfef4cda7 Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff changeset
32 clean:
dc2bfef4cda7 Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff changeset
33 rm -f $(NAME).ps $(NAME).pdf book.ps book.pdf
79
f3c95ee96cc4 Moved TOC from end to beginning; extended makefile.
markus schnalke <meillo@marmaro.de>
parents: 33
diff changeset
34 rm -f *.ig