customize makefiles
parent
ba9a85ef90
commit
cac66247f6
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue