X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=Makefile;h=6c581a2d150d881a496985f3df777bdfe52faa8d;hb=c1a2d537de7ff3d730d26658daa822b2f03ea110;hp=eadae054df5336eb7205f425c8193f0174f28f39;hpb=b039340842965c6b4bc4abe0f6485cf71c9f8935;p=msc-thesis1617.git diff --git a/Makefile b/Makefile index eadae05..6c581a2 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,9 @@ MAKEGLOSSARIESFLAGS?= LATEXFLAGS:=-file-line-error -halt-on-error -no-shell-escape FIGURES:=$(addsuffix .png,$(addprefix img/,$(notdir $(basename $(wildcard fig/*.dot))))) +LISTINGS:=$(wildcard listings/*) +TEXS:=$(wildcard *.bib) +BIBS:=$(wildcard *.tex) .PHONY: all clean .SECONDARY: $(addsuffix .fmt,$(DOCS)) $(FIGURES) @@ -20,7 +23,7 @@ all: $(addsuffix .pdf,$(DOCS)) %.pdf: %.mlog if $(GREP) -iFq 'Rerun' $<; then $(LATEX) $(LATEXFLAGS) $(basename $<); fi -%.mlog: %.tex %.fmt $(wildcard *.bib) $(wildcard *.tex) $(FIGURES) +%.mlog: %.tex %.fmt $(BIBS) $(TEXS) $(FIGURES) $(LISTINGS) $(LATEX) $(LATEXFLAGS) $< if $(GREP) -q '^\\bibdata{' $(basename $<).aux; then $(BIBTEX) $(BIBTEXFLAGS) $(basename $<); fi if $(GREP) -q '\@istfilename' $(basename $<).aux; then $(MAKEGLOSSARIES) $(MAKEGLOSSARIESFLAGSFLAGS) $(basename $<); fi