From 026c795c7bdedea124f1b1d36b67e4ef38b87628 Mon Sep 17 00:00:00 2001 From: Alexandre Dupas Date: Thu, 19 Mar 2009 23:10:40 +0100 Subject: [PATCH] Reorganize makefile --- makefile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/makefile b/makefile index 13fd2bc7..807121c7 100644 --- a/makefile +++ b/makefile @@ -54,11 +54,9 @@ endef default: pdf -ps: LATEX = latex ps: $(PSF) gv $< -pdf: LATEX = pdflatex pdf: $(PDF) xpdf $< @@ -96,7 +94,6 @@ $(PSF): %.ps.gz: %.ps $(PDF): LATEX = pdflatex $(PDF): %.pdf: %.tex %.aux - $(LATEX) $< %.aux: %.tex $(LATEX) $< @@ -106,8 +103,8 @@ $(PDF): %.pdf: %.tex %.aux %.d: %.tex @$(get_dependencies) ; echo $< $@: $$deps > $@ - @$(get_inclusions) ; echo $(patsubst %.tex,%.pdf,$<) : $$incl >> $@ ; - @$(get_prereq) ; echo $$prep : $(patsubst %.tex,%.aux,$<) >> $@ + @$(get_inclusions) ; echo $(patsubst %.tex,%.pdf,$<) : $$incl >> $@ ; echo "\t"$$\(LATEX\) $< >> $@ ; + @$(get_prereq) ; echo $$prep : $(patsubst %.tex,%.aux,$<) >> $@ ; include $(SOURCES:%.tex=%.d)