Move to subdirectory

This commit is contained in:
Théophile Bastian 2016-08-22 10:50:23 +02:00
commit fdb5d06dbf
15 changed files with 8 additions and 6 deletions

31
report/Makefile Normal file
View file

@ -0,0 +1,31 @@
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