X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=Makefile;h=8f9b5518bfdf30ac84deb6a3405a2370b4d33bea;hb=96c38eaced38e4a3cb8df44ec54b778a1dc11b24;hp=c13b41522930d8df8811c008a95bb5c07398d5d2;hpb=1f80c2e13d24d5617c8256ff64dfa485097f868c;p=msc-thesis1617.git 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)