docs/master

annotate makefile @ 236:49d3aa0d128a

style: Removed unused macro code.
author markus schnalke <meillo@marmaro.de>
date Mon, 16 Jul 2012 11:31:25 +0200
parents 1fa5a74bf138
children
rev   line source
meillo@0 1 NAME = thesis
meillo@174 2 CHAPS = style front.roff dedication.roff toc.roff \
meillo@184 3 preface.roff intro.roff discussion.roff summary.roff tools.roff \
meillo@223 4 refs.roff official.roff colophon.roff
meillo@197 5 BIB = bib *.bib
meillo@0 6 PDFFLAGS = -sPAPERSIZE=a4 -dPDFSETTINGS=/prepress
meillo@197 7 REFER = refer -n -p bib -p mail.bib -p web.bib -e -P -sLAD -l,2 -k
meillo@0 8
meillo@0 9 all: $(NAME).ps
meillo@0 10
meillo@197 11 $(NAME).ps: $(CHAPS) makefile $(BIB) toc.ig refs.ig
meillo@150 12 export TROFFONTS=fonts;\
meillo@150 13 soelim $(CHAPS) | $(REFER) | \
meillo@220 14 tbl | grap | pic | \
meillo@220 15 troff -Tps -ms -mpictures 2>err.ig | dpost >$@
meillo@79 16
meillo@79 17 err.ig: $(CHAPS)
meillo@150 18 export TROFFONTS=fonts;\
meillo@150 19 soelim $(CHAPS) | $(REFER) | \
meillo@220 20 tbl | grap | pic | \
meillo@220 21 troff -Tps -ms -mpictures -rZ1 -z 2>$@
meillo@79 22
meillo@79 23 toc.ig: err.ig
meillo@113 24 sed -n '/^TOC____/s///p' err.ig >$@
meillo@0 25
meillo@156 26 refs.ig: err.ig
meillo@156 27 mkdir -p refs
meillo@176 28 awk -F '\t' '/^REF____/{ \
meillo@151 29 sub(/^REF____/,""); \
meillo@151 30 printf $$2 >"refs/"$$1; close("refs/$$1"); \
meillo@151 31 printf $$3 >"refs/"$$1".page"; close("refs/$$1.page");\
meillo@151 32 }' err.ig
meillo@151 33
meillo@0 34 pdf: $(NAME).pdf
meillo@0 35 $(NAME).pdf: $(NAME).ps
meillo@115 36 ps2pdf $(PDFFLAGS) $(NAME).ps 2>/dev/null
meillo@0 37
meillo@0 38 book: book.pdf
meillo@0 39 book.pdf: book.ps
meillo@115 40 ps2pdf $(PDFFLAGS) book.ps 2>/dev/null
meillo@0 41 book.ps: $(NAME).ps
meillo@0 42 psbook -s16 $(NAME).ps | psnup -2 -m2mm >$@
meillo@0 43
meillo@0 44 clean:
meillo@0 45 rm -f $(NAME).ps $(NAME).pdf book.ps book.pdf
meillo@156 46 rm -rf refs
meillo@79 47 rm -f *.ig