Mercurial > docs > master
annotate makefile @ 126:3aafbd32d77b
Reworked the User Data Location (Separation) section.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Sat, 30 Jun 2012 16:50:35 +0200 |
parents | edbc6e1dc636 |
children | 8c56dac46efe |
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 \ |
107
9f672d3a25f9
Renamed the chapters to speaking names.
markus schnalke <meillo@marmaro.de>
parents:
92
diff
changeset
|
3 preface.roff intro.roff discussion.roff summary.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 |
113
4a1f5ec6220d
makefile: Minor improvements.
markus schnalke <meillo@marmaro.de>
parents:
111
diff
changeset
|
8 $(NAME).ps: $(CHAPS) makefile bib toc.ig |
33
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;\ |
92
e6f95015ba61
Added a grap diagram. Needed to adjust the makefile (soelim, grap, pic).
markus schnalke <meillo@marmaro.de>
parents:
79
diff
changeset
|
10 soelim $(CHAPS) | refer -e -P -sLAD -l,2 -k | \ |
e6f95015ba61
Added a grap diagram. Needed to adjust the makefile (soelim, grap, pic).
markus schnalke <meillo@marmaro.de>
parents:
79
diff
changeset
|
11 grap | pic | troff -Tps -ms 2>err.ig | dpost >$@ |
79
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;\ |
92
e6f95015ba61
Added a grap diagram. Needed to adjust the makefile (soelim, grap, pic).
markus schnalke <meillo@marmaro.de>
parents:
79
diff
changeset
|
15 soelim $(CHAPS) | refer -e -P -sLAD -l,2 -k | \ |
e6f95015ba61
Added a grap diagram. Needed to adjust the makefile (soelim, grap, pic).
markus schnalke <meillo@marmaro.de>
parents:
79
diff
changeset
|
16 grap | pic | troff -Tps -ms -rZ1 -z 2>$@ |
79
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.ig: err.ig |
113
4a1f5ec6220d
makefile: Minor improvements.
markus schnalke <meillo@marmaro.de>
parents:
111
diff
changeset
|
19 sed -n '/^TOC____/s///p' err.ig >$@ |
0
dc2bfef4cda7
Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff
changeset
|
20 |
dc2bfef4cda7
Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff
changeset
|
21 pdf: $(NAME).pdf |
dc2bfef4cda7
Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff
changeset
|
22 $(NAME).pdf: $(NAME).ps |
115
7dc4867fef91
makefile: Ignore errors of ps2pdf. (Embedding only a subset of the font.)
markus schnalke <meillo@marmaro.de>
parents:
113
diff
changeset
|
23 ps2pdf $(PDFFLAGS) $(NAME).ps 2>/dev/null |
0
dc2bfef4cda7
Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff
changeset
|
24 |
dc2bfef4cda7
Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff
changeset
|
25 book: book.pdf |
dc2bfef4cda7
Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff
changeset
|
26 book.pdf: book.ps |
115
7dc4867fef91
makefile: Ignore errors of ps2pdf. (Embedding only a subset of the font.)
markus schnalke <meillo@marmaro.de>
parents:
113
diff
changeset
|
27 ps2pdf $(PDFFLAGS) book.ps 2>/dev/null |
0
dc2bfef4cda7
Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff
changeset
|
28 book.ps: $(NAME).ps |
dc2bfef4cda7
Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff
changeset
|
29 psbook -s16 $(NAME).ps | psnup -2 -m2mm >$@ |
dc2bfef4cda7
Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff
changeset
|
30 |
dc2bfef4cda7
Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff
changeset
|
31 clean: |
dc2bfef4cda7
Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff
changeset
|
32 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
|
33 rm -f *.ig |
111
8800dbbaedc5
makefile: Target `spell' to help with spell checking.
markus schnalke <meillo@marmaro.de>
parents:
107
diff
changeset
|
34 |
8800dbbaedc5
makefile: Target `spell' to help with spell checking.
markus schnalke <meillo@marmaro.de>
parents:
107
diff
changeset
|
35 spell: |
121
edbc6e1dc636
New text on Standard Libraries plus spellchecking.
markus schnalke <meillo@marmaro.de>
parents:
115
diff
changeset
|
36 sort -u -o terms terms |
111
8800dbbaedc5
makefile: Target `spell' to help with spell checking.
markus schnalke <meillo@marmaro.de>
parents:
107
diff
changeset
|
37 spell +terms *.roff | egrep -v '[0-9a-f]{40}' |