25 lines
480 B
Makefile
25 lines
480 B
Makefile
TEX=report
|
|
|
|
DOTFIGURES=coffeemachine.game.tex coffeemachine.strat.tex
|
|
|
|
###################################################
|
|
|
|
DOTFIGURES_PATH=$(patsubst %,_build/dot/%,$(DOTFIGURES))
|
|
|
|
all: $(TEX).tex $(DOTFIGURES_PATH)
|
|
pdflatex $(TEX)
|
|
bibtex $(TEX)
|
|
pdflatex $(TEX)
|
|
pdflatex $(TEX)
|
|
|
|
_build:
|
|
mkdir -p _build
|
|
mkdir -p _build/dot
|
|
|
|
_build/dot/%.tex: dot/%.dot _build
|
|
cat $< | dot2tex -ftikz --codeonly > $@
|
|
|
|
clean:
|
|
rm -rf _build
|
|
rm -f *.aux *.bbl *.blg *.log *.out *.pdf *.toc
|
|
|