docs/master

annotate makefile @ 84:c35ec2b7de5d

style: New macros .Ar (argument) and .Hd (header field)
author markus schnalke <meillo@marmaro.de>
date Wed, 06 Jun 2012 18:27:28 +0200
parents 3e70450336a4
children e6f95015ba61
rev   line source
meillo@0 1 NAME = thesis
meillo@79 2 CHAPS = style front.roff dedication.roff abstract.roff toc.roff \
meillo@79 3 preface.roff ch*.roff refs.roff
meillo@0 4 PDFFLAGS = -sPAPERSIZE=a4 -dPDFSETTINGS=/prepress
meillo@0 5
meillo@0 6 all: $(NAME).ps
meillo@0 7
meillo@33 8 $(NAME).ps: $(CHAPS) makefile bib
meillo@33 9 export TROFFONTS=fonts REFER=bib;\
meillo@79 10 cat $(CHAPS) | refer -e -P -sLAD -l,2 -k | \
meillo@79 11 troff -Tps -ms 2>err.ig | dpost >$@
meillo@79 12
meillo@79 13 err.ig: $(CHAPS)
meillo@79 14 export TROFFONTS=fonts REFER=bib;\
meillo@79 15 cat $(CHAPS) | refer -e -P -sLAD -l,2 -k | \
meillo@79 16 troff -Tps -ms -rZ1 -z 2>$@
meillo@79 17
meillo@79 18 toc.roff: toc.ig
meillo@79 19 toc.ig: err.ig
meillo@79 20 sed -n '/^TOC____/s///p' $< >$@
meillo@0 21
meillo@0 22 pdf: $(NAME).pdf
meillo@0 23 $(NAME).pdf: $(NAME).ps
meillo@0 24 ps2pdf $(PDFFLAGS) $(NAME).ps
meillo@0 25
meillo@0 26 book: book.pdf
meillo@0 27 book.pdf: book.ps
meillo@0 28 ps2pdf $(PDFFLAGS) book.ps
meillo@0 29 book.ps: $(NAME).ps
meillo@0 30 psbook -s16 $(NAME).ps | psnup -2 -m2mm >$@
meillo@0 31
meillo@0 32 clean:
meillo@0 33 rm -f $(NAME).ps $(NAME).pdf book.ps book.pdf
meillo@79 34 rm -f *.ig