docs/master

view makefile @ 102:a782488c85f5

More text about attachments mainly, plus some rearrangements.
author markus schnalke <meillo@marmaro.de>
date Wed, 20 Jun 2012 17:57:37 +0200
parents f3c95ee96cc4
children 9f672d3a25f9
line source
1 NAME = thesis
2 CHAPS = style front.roff dedication.roff abstract.roff toc.roff \
3 preface.roff ch*.roff refs.roff
4 PDFFLAGS = -sPAPERSIZE=a4 -dPDFSETTINGS=/prepress
6 all: $(NAME).ps
8 $(NAME).ps: $(CHAPS) makefile bib
9 export TROFFONTS=fonts REFER=bib;\
10 soelim $(CHAPS) | refer -e -P -sLAD -l,2 -k | \
11 grap | pic | troff -Tps -ms 2>err.ig | dpost >$@
13 err.ig: $(CHAPS)
14 export TROFFONTS=fonts REFER=bib;\
15 soelim $(CHAPS) | refer -e -P -sLAD -l,2 -k | \
16 grap | pic | troff -Tps -ms -rZ1 -z 2>$@
18 toc.roff: toc.ig
19 toc.ig: err.ig
20 sed -n '/^TOC____/s///p' $< >$@
22 pdf: $(NAME).pdf
23 $(NAME).pdf: $(NAME).ps
24 ps2pdf $(PDFFLAGS) $(NAME).ps
26 book: book.pdf
27 book.pdf: book.ps
28 ps2pdf $(PDFFLAGS) book.ps
29 book.ps: $(NAME).ps
30 psbook -s16 $(NAME).ps | psnup -2 -m2mm >$@
32 clean:
33 rm -f $(NAME).ps $(NAME).pdf book.ps book.pdf
34 rm -f *.ig