X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=Makefile;h=b26533f9cca9189b10a0064541cd10ea3e8dfaf4;hb=62adc41f28fb8baaa8e1a40d8806b06069d641ed;hp=410cb11bf85324cc712acf30e40f59cdbffde9fa;hpb=ab546cf018589757a516121ebfcc78080827bcff;p=msc-thesis1617.git diff --git a/Makefile b/Makefile index 410cb11..b26533f 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,11 @@ BIBTEX?=bibtex BIBTEXFLAGS:= MAKEGL?=makeglossaries MAKEGLFLAGS?= -LATEXFLAGS:=-file-line-error -halt-on-error #-no-shell-escape +MAKEIDX?=makeindex +MAKEIDXFLAGS?= +DOT?=dot +DOTFLAGS?=-Tpng +LATEXFLAGS:=-file-line-error -halt-on-error FIGURES:=$(patsubst fig/%.dot,img/%.png,$(wildcard fig/*.dot)) LISTINGS:=$(wildcard listings/*) @@ -27,14 +31,15 @@ all: $(DOCS:%=%.pdf) $(LATEX) $(LATEXFLAGS) $< if $(GREP) -q '^\\bibdata{' $(basename $<).aux; then $(BIBTEX) $(BIBTEXFLAGS) $(basename $<); fi if $(GREP) -q '\@istfilename' $(basename $<).aux; then $(MAKEGL) $(MAKEGLFLAGS) $(basename $<); fi + if [ -f $(basename $<).idx ]; then $(MAKEIDX) $(MAKEIDXFLAGS) $(basename $<); fi $(LATEX) $(LATEXFLAGS) $< | tee $@ img/%.png: fig/%.dot - dot -Tpng $< > $@ + $(DOT) $(DOTFLAGS) $< > $@ clean: $(DOCS:%=clean-%) $(RM) $(FIGURES) clean-%: - $(RM) $(addprefix $(@:clean-%=%).,acn acr alg aux bbl blg fmt glg glo\ - gls ist lof log lol lot mlog out pdf tdo toc) + $(RM) $(addprefix $(@:clean-%=%).,acn acr alg aux bbl blg idl idx ilg ind\ + fmt glg glo gls ist loa lof log lol lot mlog nav out pdf snm tdo toc)