Mercurial > docs > master
annotate makefile @ 215:3e44b92cfa8c
bib: Minor change for consistency.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Fri, 13 Jul 2012 01:12:07 +0200 |
parents | 9ed707d62150 |
children | 95257474a123 |
rev | line source |
---|---|
0
dc2bfef4cda7
Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff
changeset
|
1 NAME = thesis |
174
35fc40a5011d
We won't have an abstract.
markus schnalke <meillo@marmaro.de>
parents:
162
diff
changeset
|
2 CHAPS = style front.roff dedication.roff toc.roff \ |
184
1d28ed59de8a
Added appendix ``tools of mmh''
markus schnalke <meillo@marmaro.de>
parents:
176
diff
changeset
|
3 preface.roff intro.roff discussion.roff summary.roff tools.roff \ |
198
9ed707d62150
Added separate RFC page to the references.
markus schnalke <meillo@marmaro.de>
parents:
197
diff
changeset
|
4 refs.roff rfcs.roff official.roff colophon.roff |
197
05a243dffaca
Added refs to the Preface; splitted the bib.
markus schnalke <meillo@marmaro.de>
parents:
184
diff
changeset
|
5 BIB = bib *.bib |
0
dc2bfef4cda7
Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff
changeset
|
6 PDFFLAGS = -sPAPERSIZE=a4 -dPDFSETTINGS=/prepress |
197
05a243dffaca
Added refs to the Preface; splitted the bib.
markus schnalke <meillo@marmaro.de>
parents:
184
diff
changeset
|
7 REFER = refer -n -p bib -p mail.bib -p web.bib -e -P -sLAD -l,2 -k |
0
dc2bfef4cda7
Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff
changeset
|
8 |
dc2bfef4cda7
Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff
changeset
|
9 all: $(NAME).ps |
dc2bfef4cda7
Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff
changeset
|
10 |
197
05a243dffaca
Added refs to the Preface; splitted the bib.
markus schnalke <meillo@marmaro.de>
parents:
184
diff
changeset
|
11 $(NAME).ps: $(CHAPS) makefile $(BIB) toc.ig refs.ig |
150
472aa79f9b6f
bib: Split bib into RFCs and the rest.
markus schnalke <meillo@marmaro.de>
parents:
147
diff
changeset
|
12 export TROFFONTS=fonts;\ |
472aa79f9b6f
bib: Split bib into RFCs and the rest.
markus schnalke <meillo@marmaro.de>
parents:
147
diff
changeset
|
13 soelim $(CHAPS) | $(REFER) | \ |
184
1d28ed59de8a
Added appendix ``tools of mmh''
markus schnalke <meillo@marmaro.de>
parents:
176
diff
changeset
|
14 tbl | 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
|
15 |
f3c95ee96cc4
Moved TOC from end to beginning; extended makefile.
markus schnalke <meillo@marmaro.de>
parents:
33
diff
changeset
|
16 err.ig: $(CHAPS) |
150
472aa79f9b6f
bib: Split bib into RFCs and the rest.
markus schnalke <meillo@marmaro.de>
parents:
147
diff
changeset
|
17 export TROFFONTS=fonts;\ |
472aa79f9b6f
bib: Split bib into RFCs and the rest.
markus schnalke <meillo@marmaro.de>
parents:
147
diff
changeset
|
18 soelim $(CHAPS) | $(REFER) | \ |
184
1d28ed59de8a
Added appendix ``tools of mmh''
markus schnalke <meillo@marmaro.de>
parents:
176
diff
changeset
|
19 tbl | 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
|
20 |
f3c95ee96cc4
Moved TOC from end to beginning; extended makefile.
markus schnalke <meillo@marmaro.de>
parents:
33
diff
changeset
|
21 toc.ig: err.ig |
113
4a1f5ec6220d
makefile: Minor improvements.
markus schnalke <meillo@marmaro.de>
parents:
111
diff
changeset
|
22 sed -n '/^TOC____/s///p' err.ig >$@ |
0
dc2bfef4cda7
Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff
changeset
|
23 |
156
db199d51d5b0
makefile: Fixed building of refs.
markus schnalke <meillo@marmaro.de>
parents:
151
diff
changeset
|
24 refs.ig: err.ig |
db199d51d5b0
makefile: Fixed building of refs.
markus schnalke <meillo@marmaro.de>
parents:
151
diff
changeset
|
25 mkdir -p refs |
176
25d05add0d97
Mentioned the source of the Dijkstra quote and fixed the ref system.
markus schnalke <meillo@marmaro.de>
parents:
174
diff
changeset
|
26 awk -F '\t' '/^REF____/{ \ |
151
ff3a6a0e6255
Added system for references within the document. Macros: .Id and .Cf.
markus schnalke <meillo@marmaro.de>
parents:
150
diff
changeset
|
27 sub(/^REF____/,""); \ |
ff3a6a0e6255
Added system for references within the document. Macros: .Id and .Cf.
markus schnalke <meillo@marmaro.de>
parents:
150
diff
changeset
|
28 printf $$2 >"refs/"$$1; close("refs/$$1"); \ |
ff3a6a0e6255
Added system for references within the document. Macros: .Id and .Cf.
markus schnalke <meillo@marmaro.de>
parents:
150
diff
changeset
|
29 printf $$3 >"refs/"$$1".page"; close("refs/$$1.page");\ |
ff3a6a0e6255
Added system for references within the document. Macros: .Id and .Cf.
markus schnalke <meillo@marmaro.de>
parents:
150
diff
changeset
|
30 }' err.ig |
ff3a6a0e6255
Added system for references within the document. Macros: .Id and .Cf.
markus schnalke <meillo@marmaro.de>
parents:
150
diff
changeset
|
31 |
0
dc2bfef4cda7
Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff
changeset
|
32 pdf: $(NAME).pdf |
dc2bfef4cda7
Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff
changeset
|
33 $(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
|
34 ps2pdf $(PDFFLAGS) $(NAME).ps 2>/dev/null |
0
dc2bfef4cda7
Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff
changeset
|
35 |
dc2bfef4cda7
Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff
changeset
|
36 book: book.pdf |
dc2bfef4cda7
Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff
changeset
|
37 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
|
38 ps2pdf $(PDFFLAGS) book.ps 2>/dev/null |
0
dc2bfef4cda7
Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff
changeset
|
39 book.ps: $(NAME).ps |
dc2bfef4cda7
Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff
changeset
|
40 psbook -s16 $(NAME).ps | psnup -2 -m2mm >$@ |
dc2bfef4cda7
Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff
changeset
|
41 |
dc2bfef4cda7
Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff
changeset
|
42 clean: |
dc2bfef4cda7
Initial commit: Basic structure, macros and fonts.
markus schnalke <meillo@marmaro.de>
parents:
diff
changeset
|
43 rm -f $(NAME).ps $(NAME).pdf book.ps book.pdf |
156
db199d51d5b0
makefile: Fixed building of refs.
markus schnalke <meillo@marmaro.de>
parents:
151
diff
changeset
|
44 rm -rf refs |
79
f3c95ee96cc4
Moved TOC from end to beginning; extended makefile.
markus schnalke <meillo@marmaro.de>
parents:
33
diff
changeset
|
45 rm -f *.ig |
111
8800dbbaedc5
makefile: Target `spell' to help with spell checking.
markus schnalke <meillo@marmaro.de>
parents:
107
diff
changeset
|
46 |
8800dbbaedc5
makefile: Target `spell' to help with spell checking.
markus schnalke <meillo@marmaro.de>
parents:
107
diff
changeset
|
47 spell: |
121
edbc6e1dc636
New text on Standard Libraries plus spellchecking.
markus schnalke <meillo@marmaro.de>
parents:
115
diff
changeset
|
48 sort -u -o terms terms |
111
8800dbbaedc5
makefile: Target `spell' to help with spell checking.
markus schnalke <meillo@marmaro.de>
parents:
107
diff
changeset
|
49 spell +terms *.roff | egrep -v '[0-9a-f]{40}' |