Add Makefile
This commit is contained in:
parent
53c2af484c
commit
de7786f7cc
1 changed files with 15 additions and 0 deletions
15
art-argumenter/exercices/Makefile
Normal file
15
art-argumenter/exercices/Makefile
Normal file
|
@ -0,0 +1,15 @@
|
|||
timestamp=$(shell date +%Y-%m-%d_%H:%M)
|
||||
|
||||
all: texte1
|
||||
|
||||
texte1: texte1.tex
|
||||
@latexmk -pdf texte1.tex
|
||||
@if ! cmp --silent build/texte1.pdf texte1_*.pdf; then \
|
||||
touch texte1_tmp.pdf; \
|
||||
rm texte1*.pdf; \
|
||||
cp build/texte1.pdf texte1_${timestamp}.pdf; \
|
||||
echo "Updated"; \
|
||||
fi
|
||||
|
||||
clean:
|
||||
@rm -rf build 2>/dev/null
|
Loading…
Reference in a new issue