docs/master

diff makefile @ 0:dc2bfef4cda7

Initial commit: Basic structure, macros and fonts.
author markus schnalke <meillo@marmaro.de>
date Sat, 03 Mar 2012 12:55:57 +0100
parents
children 3e70450336a4
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/makefile	Sat Mar 03 12:55:57 2012 +0100
     1.3 @@ -0,0 +1,23 @@
     1.4 +NAME = thesis
     1.5 +CHAPS = style front.roff dedication.roff abstract.roff preface.roff \
     1.6 +	ch*.roff toc.roff
     1.7 +PDFFLAGS = -sPAPERSIZE=a4 -dPDFSETTINGS=/prepress
     1.8 +
     1.9 +all: $(NAME).ps
    1.10 +
    1.11 +$(NAME).ps: $(CHAPS) makefile
    1.12 +	export TROFFONTS=fonts;\
    1.13 +	eqn $(CHAPS) | troff -Tps -ms | dpost >$@
    1.14 +
    1.15 +pdf: $(NAME).pdf
    1.16 +$(NAME).pdf: $(NAME).ps
    1.17 +	ps2pdf $(PDFFLAGS) $(NAME).ps
    1.18 +
    1.19 +book: book.pdf
    1.20 +book.pdf: book.ps
    1.21 +	ps2pdf $(PDFFLAGS) book.ps
    1.22 +book.ps: $(NAME).ps
    1.23 +	psbook -s16 $(NAME).ps | psnup -2 -m2mm >$@
    1.24 +
    1.25 +clean:
    1.26 +	rm -f $(NAME).ps $(NAME).pdf book.ps book.pdf