2016-07-18 12:50:28 +02:00
|
|
|
TEX=report
|
2016-07-19 11:50:11 +02:00
|
|
|
|
|
|
|
DOTFIGURES=coffeemachine.game.tex coffeemachine.strat.tex
|
|
|
|
|
2016-08-12 17:29:29 +02:00
|
|
|
REMOTE=www.tobast
|
|
|
|
REMOTEDIR=~/tobast.fr/public_html/l3/report.pdf
|
|
|
|
|
2016-07-19 11:50:11 +02:00
|
|
|
###################################################
|
|
|
|
|
|
|
|
DOTFIGURES_PATH=$(patsubst %,_build/dot/%,$(DOTFIGURES))
|
|
|
|
|
|
|
|
all: $(TEX).tex $(DOTFIGURES_PATH)
|
2016-07-18 12:50:28 +02:00
|
|
|
pdflatex $(TEX)
|
|
|
|
bibtex $(TEX)
|
2016-07-11 17:42:34 +02:00
|
|
|
pdflatex $(TEX)
|
|
|
|
pdflatex $(TEX)
|
|
|
|
|
2016-08-12 17:29:29 +02:00
|
|
|
upload: all
|
|
|
|
scp $(TEX).pdf $(REMOTE):$(REMOTEDIR)
|
|
|
|
|
2016-07-19 11:50:11 +02:00
|
|
|
_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
|
2016-07-11 17:42:34 +02:00
|
|
|
|