efrei/art-disserter/Makefile

25 lines
521 B
Makefile
Raw Normal View History

2022-06-21 11:20:03 +02:00
timestamp=$(shell date +%Y-%m-%d_%H:%M)
2022-06-28 09:35:02 +02:00
all: sujet1 oral
2022-06-21 11:20:03 +02:00
2022-06-28 09:35:02 +02:00
sujet1: sujet1.tex
@latexmk -pdf sujet1.tex
@if ! cmp --silent build/sujet1.pdf sujet1_*.pdf; then \
touch sujet1_tmp.pdf; \
rm sujet1*.pdf; \
cp build/sujet1.pdf sujet1_${timestamp}.pdf; \
echo "Updated"; \
fi
oral: oral.tex
@latexmk -pdf oral.tex
@if ! cmp --silent build/oral.pdf oral_*.pdf; then \
touch oral_tmp.pdf; \
rm oral*.pdf; \
cp build/oral.pdf oral_${timestamp}.pdf; \
2022-06-21 11:20:03 +02:00
echo "Updated"; \
fi
clean:
@rm -rf build 2>/dev/null