X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=Makefile;h=eadae054df5336eb7205f425c8193f0174f28f39;hb=130cec648788a4660c91ffed6c1c2fb682413055;hp=9c08e6eb64d25583f5b709a722de9df7bc36cdf2;hpb=dc057560c806a535088e1d9ebdbdd0737467ecc3;p=msc-thesis1617.git diff --git a/Makefile b/Makefile index 9c08e6e..eadae05 100644 --- a/Makefile +++ b/Makefile @@ -7,8 +7,10 @@ MAKEGLOSSARIES?=makeglossaries MAKEGLOSSARIESFLAGS?= LATEXFLAGS:=-file-line-error -halt-on-error -no-shell-escape +FIGURES:=$(addsuffix .png,$(addprefix img/,$(notdir $(basename $(wildcard fig/*.dot))))) + .PHONY: all clean -.SECONDARY: $(addsuffix .fmt,$(DOCS)) +.SECONDARY: $(addsuffix .fmt,$(DOCS)) $(FIGURES) all: $(addsuffix .pdf,$(DOCS)) @@ -18,13 +20,16 @@ all: $(addsuffix .pdf,$(DOCS)) %.pdf: %.mlog if $(GREP) -iFq 'Rerun' $<; then $(LATEX) $(LATEXFLAGS) $(basename $<); fi -%.mlog: %.tex %.fmt $(wildcard *.bib) $(wildcard *.tex) +%.mlog: %.tex %.fmt $(wildcard *.bib) $(wildcard *.tex) $(FIGURES) $(LATEX) $(LATEXFLAGS) $< if $(GREP) -q '^\\bibdata{' $(basename $<).aux; then $(BIBTEX) $(BIBTEXFLAGS) $(basename $<); fi if $(GREP) -q '\@istfilename' $(basename $<).aux; then $(MAKEGLOSSARIES) $(MAKEGLOSSARIESFLAGSFLAGS) $(basename $<); fi $(LATEX) $(LATEXFLAGS) $< | tee $@ +img/%.png: fig/%.dot + dot -Tpng $< > $@ + clean: $(RM) $(foreach DOC,$(DOCS),$(addprefix $(DOC).,\ acn acr alg aux bbl blg fmt glg glo gls ist lof log lol lot nav out\ - pdf run.xml snm tdo toc vrb xdy)) + pdf run.xml snm tdo toc vrb xdy)) $(FIGURES)