From cac66247f6fcb5516acd90fb885677fb530143c6 Mon Sep 17 00:00:00 2001 From: Clemens Klug Date: Tue, 20 Jun 2017 10:52:22 +0200 Subject: [PATCH] customize makefiles --- PresTeX/Makefile | 31 +++++++++++++++++++++++++++++++ ThesTeX/Makefile | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) diff --git a/PresTeX/Makefile b/PresTeX/Makefile index 52e98d6..fe38172 100644 --- a/PresTeX/Makefile +++ b/PresTeX/Makefile @@ -29,3 +29,34 @@ gitmodules: initialize initialize: @test -f .prepared || rm -rf .git .gitmodules meta @test -f .prepared || ( cd $(base) && ( test -d .git || git init ) ) + + +I = +DOTTYPE := pdf +LANG := de +F := +DOT_WILDCARD := image/*.dot +.PHONY: fast latex bibtex dot spell spell1 todo +fast: + pdflatex -synctex=1 -interaction=nonstopmode $(main)$(I) + bibtex $(main)$(I) + pdflatex -synctex=1 -interaction=nonstopmode $(main)$(I) +latex: + pdflatex -synctex=1 -interaction=nonstopmode $(main)$(I) +bibtex: + bibtex $(main)$(I) +multibib: + ifneq ("$(wildcard $(main)$(I)?.aux)", "") + @for i in $(main)$(I)?.aux; do bibtex $${i}; done; + endif +dot: + ifneq ("$(wildcard $(DOT_WILDCARD))", "") + @for i in $(DOT_WILDCARD); do dot -T$(DOTTYPE) $$i -o $${i%%dot}$(DOTTYPE); done; + endif +spell: + @for i in content/*.tex; do \ + aspell -l $(LANG) -c $$i; done +spell1: + @aspell -l $(LANG) -c content/$(F).tex +todo: + @grep --color=always -in "TODO" content/*.tex diff --git a/ThesTeX/Makefile b/ThesTeX/Makefile index a3150e4..488eb08 100644 --- a/ThesTeX/Makefile +++ b/ThesTeX/Makefile @@ -27,3 +27,37 @@ gitmodules: initialize initialize: @test -f .prepared || rm -rf .git .gitmodules meta @test -f .prepared || ( cd $(base) && ( test -d .git || git init ) ) + + +DOTTYPE := pdf +LANG := de +F := +DOT_WILDCARD := image/*.dot +.PHONY: fast latex bibtex dot spell spell1 todo +fast: + pdflatex -synctex=1 -interaction=nonstopmode $(main) + bibtex $(main) + pdflatex -synctex=1 -interaction=nonstopmode $(main) +latex: + pdflatex -synctex=1 -interaction=nonstopmode $(main) +bibtex: + bibtex $(main) +multibib: + ifneq ("$(wildcard $(main)?.aux)", "") + @for i in $(main)?.aux; do bibtex $${i}; done; + endif +dot: + ifneq ("$(wildcard $(DOT_WILDCARD))", "") + @for i in $(DOT_WILDCARD); do dot -T$(DOTTYPE) $$i -o $${i%%dot}$(DOTTYPE); done; + endif +spell: + @for i in content/*.tex; do \ + aspell -l $(LANG) -c $$i; done +spell1: + @aspell -l $(LANG) -c content/$(F).tex +todo: + @grep --color=always -in "TODO" content/*.tex +index: + makeindex -s config/index.ist $(main) +nomecl: + makeindex $(main).nlo -s nomencl.ist -o $(main).nls