fix makefile
authorMart Lubbers <mart@martlubbers.net>
Mon, 22 May 2017 14:23:03 +0000 (16:23 +0200)
committerMart Lubbers <mart@martlubbers.net>
Mon, 22 May 2017 14:23:03 +0000 (16:23 +0200)
Makefile

index c13b415..8f9b551 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -19,12 +19,12 @@ BIBS:=$(wildcard *.tex)
 .PHONY: all clean
 .SECONDARY: $(addsuffix .fmt,$(DOCS)) $(FIGURES)
 
-all: $(addsuffix .pdf,$(DOCS))
+all: $(addprefix output/,$(addsuffix .pdf,$(DOCS)))
 
 output/%.fmt: %.pre
        $(LATEX) $(LATEXFLAGS) -ini -jobname="$(basename $<)" "&$(LATEX) $<\dump"
 
-%.pdf: %.mlog
+output/%.pdf: %.mlog
        if $(GREP) -iFq 'Rerun' $<; then $(LATEX) $(LATEXFLAGS) $(basename $<); fi
 
 %.mlog: %.tex output/%.fmt $(BIBS) $(TEXS) $(FIGURES) $(LISTINGS)
@@ -37,4 +37,4 @@ img/%.png: fig/%.dot
        dot -Tpng $< > $@
 
 clean:
-       $(RM) output/** $(FIGURES)
+       $(RM) output/* $(FIGURES)