changeset 113:4a1f5ec6220d

makefile: Minor improvements.
author markus schnalke <meillo@marmaro.de>
date Mon, 25 Jun 2012 10:07:33 +0200
parents 4e6a9ae1b53c
children 92cbd3fa1c40
files makefile
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/makefile	Sun Jun 24 22:32:18 2012 +0200
+++ b/makefile	Mon Jun 25 10:07:33 2012 +0200
@@ -5,7 +5,7 @@
 
 all: $(NAME).ps
 
-$(NAME).ps: $(CHAPS) makefile bib
+$(NAME).ps: $(CHAPS) makefile bib toc.ig
 	export TROFFONTS=fonts REFER=bib;\
 	soelim $(CHAPS) | refer -e -P -sLAD -l,2 -k | \
 		grap | pic | troff -Tps -ms 2>err.ig | dpost >$@
@@ -15,9 +15,8 @@
 	soelim $(CHAPS) | refer -e -P -sLAD -l,2 -k | \
 		grap | pic | troff -Tps -ms -rZ1 -z 2>$@
 
-toc.roff: toc.ig
 toc.ig: err.ig
-	sed -n '/^TOC____/s///p' $< >$@
+	sed -n '/^TOC____/s///p' err.ig >$@
 
 pdf: $(NAME).pdf
 $(NAME).pdf: $(NAME).ps