diff makefile @ 33:3e70450336a4

refer: Added refer; the bib contains various entries already.
author markus schnalke <meillo@marmaro.de>
date Tue, 15 May 2012 19:19:17 +0200
parents dc2bfef4cda7
children f3c95ee96cc4
line wrap: on
line diff
--- a/makefile	Mon May 14 17:10:43 2012 +0200
+++ b/makefile	Tue May 15 19:19:17 2012 +0200
@@ -1,13 +1,13 @@
 NAME = thesis
 CHAPS = style front.roff dedication.roff abstract.roff preface.roff \
-	ch*.roff toc.roff
+	ch*.roff refs.roff toc.roff
 PDFFLAGS = -sPAPERSIZE=a4 -dPDFSETTINGS=/prepress
 
 all: $(NAME).ps
 
-$(NAME).ps: $(CHAPS) makefile
-	export TROFFONTS=fonts;\
-	eqn $(CHAPS) | troff -Tps -ms | dpost >$@
+$(NAME).ps: $(CHAPS) makefile bib
+	export TROFFONTS=fonts REFER=bib;\
+	cat $(CHAPS) | refer -e -P -sLAD -l,2 -k | troff -Tps -ms | dpost >$@
 
 pdf: $(NAME).pdf
 $(NAME).pdf: $(NAME).ps
@@ -21,3 +21,4 @@
 
 clean:
 	rm -f $(NAME).ps $(NAME).pdf book.ps book.pdf
+	rm -f bib.ig