From: Mart Lubbers Date: Mon, 22 May 2017 14:23:03 +0000 (+0200) Subject: fix makefile X-Git-Tag: hand-in~119 X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;ds=sidebyside;h=532b0df9b179dee113aefb25ec9e879ebd8398bb;p=msc-thesis1617.git fix makefile --- diff --git a/Makefile b/Makefile index c13b415..8f9b551 100644 --- 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)