docs/master

view makefile @ 70:d6840bfbe04c

style: Use .substring to print only a prefix of the commit hash. I can decide later how long a prefix I like to print. If your troff doesn't support .substring, the whole hash is printed.
author markus schnalke <meillo@marmaro.de>
date Sat, 02 Jun 2012 12:39:23 +0200
parents dc2bfef4cda7
children f3c95ee96cc4
line source
1 NAME = thesis
2 CHAPS = style front.roff dedication.roff abstract.roff preface.roff \
3 ch*.roff refs.roff toc.roff
4 PDFFLAGS = -sPAPERSIZE=a4 -dPDFSETTINGS=/prepress
6 all: $(NAME).ps
8 $(NAME).ps: $(CHAPS) makefile bib
9 export TROFFONTS=fonts REFER=bib;\
10 cat $(CHAPS) | refer -e -P -sLAD -l,2 -k | troff -Tps -ms | dpost >$@
12 pdf: $(NAME).pdf
13 $(NAME).pdf: $(NAME).ps
14 ps2pdf $(PDFFLAGS) $(NAME).ps
16 book: book.pdf
17 book.pdf: book.ps
18 ps2pdf $(PDFFLAGS) book.ps
19 book.ps: $(NAME).ps
20 psbook -s16 $(NAME).ps | psnup -2 -m2mm >$@
22 clean:
23 rm -f $(NAME).ps $(NAME).pdf book.ps book.pdf
24 rm -f bib.ig