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 wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/makefile	Sat Mar 03 12:55:57 2012 +0100
@@ -0,0 +1,23 @@
+NAME = thesis
+CHAPS = style front.roff dedication.roff abstract.roff preface.roff \
+	ch*.roff toc.roff
+PDFFLAGS = -sPAPERSIZE=a4 -dPDFSETTINGS=/prepress
+
+all: $(NAME).ps
+
+$(NAME).ps: $(CHAPS) makefile
+	export TROFFONTS=fonts;\
+	eqn $(CHAPS) | troff -Tps -ms | dpost >$@
+
+pdf: $(NAME).pdf
+$(NAME).pdf: $(NAME).ps
+	ps2pdf $(PDFFLAGS) $(NAME).ps
+
+book: book.pdf
+book.pdf: book.ps
+	ps2pdf $(PDFFLAGS) book.ps
+book.ps: $(NAME).ps
+	psbook -s16 $(NAME).ps | psnup -2 -m2mm >$@
+
+clean:
+	rm -f $(NAME).ps $(NAME).pdf book.ps book.pdf