24 lines
521 B
Makefile
24 lines
521 B
Makefile
timestamp=$(shell date +%Y-%m-%d_%H:%M)
|
|
|
|
all: sujet1 oral
|
|
|
|
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; \
|
|
echo "Updated"; \
|
|
fi
|
|
|
|
clean:
|
|
@rm -rf build 2>/dev/null
|