Add Makefile

This commit is contained in:
flyingscorpio@pinebookpro 2021-11-29 13:56:09 +01:00
parent 53c2af484c
commit de7786f7cc

View 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