L3-internship-report/report/Makefile

31 lines
599 B
Makefile

TEX=report
DOTFIGURES=coffeemachine.game.tex coffeemachine.strat.tex
REMOTE=www.tobast
REMOTEDIR=~/tobast.fr/public_html/l3/report.pdf
###################################################
DOTFIGURES_PATH=$(patsubst %,_build/dot/%,$(DOTFIGURES))
all: $(TEX).tex $(DOTFIGURES_PATH)
pdflatex $(TEX)
bibtex $(TEX)
pdflatex $(TEX)
pdflatex $(TEX)
upload: all
scp $(TEX).pdf $(REMOTE):$(REMOTEDIR)
_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