docs/master
annotate makefile @ 44:18e56d609fbf
style: Replaced an ugly hack with a less ugly hack. ;-)
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Wed, 16 May 2012 20:42:30 +0200 |
parents | dc2bfef4cda7 |
children | f3c95ee96cc4 |
rev | line source |
---|---|
meillo@0 | 1 NAME = thesis |
meillo@0 | 2 CHAPS = style front.roff dedication.roff abstract.roff preface.roff \ |
meillo@33 | 3 ch*.roff refs.roff toc.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@33 | 10 cat $(CHAPS) | refer -e -P -sLAD -l,2 -k | troff -Tps -ms | dpost >$@ |
meillo@0 | 11 |
meillo@0 | 12 pdf: $(NAME).pdf |
meillo@0 | 13 $(NAME).pdf: $(NAME).ps |
meillo@0 | 14 ps2pdf $(PDFFLAGS) $(NAME).ps |
meillo@0 | 15 |
meillo@0 | 16 book: book.pdf |
meillo@0 | 17 book.pdf: book.ps |
meillo@0 | 18 ps2pdf $(PDFFLAGS) book.ps |
meillo@0 | 19 book.ps: $(NAME).ps |
meillo@0 | 20 psbook -s16 $(NAME).ps | psnup -2 -m2mm >$@ |
meillo@0 | 21 |
meillo@0 | 22 clean: |
meillo@0 | 23 rm -f $(NAME).ps $(NAME).pdf book.ps book.pdf |
meillo@33 | 24 rm -f bib.ig |