2021-09-15 09:19:34 +02:00
|
|
|
timestamp=$(shell date +%Y-%m-%d_%H:%M)
|
|
|
|
|
2021-11-06 13:29:34 +01:00
|
|
|
all: pre-requis ctd1 ctd2 ctd3
|
2021-09-15 09:19:34 +02:00
|
|
|
|
2021-09-30 20:57:10 +02:00
|
|
|
pre-requis: pre-requis.tex
|
|
|
|
@latexmk -pdf pre-requis.tex
|
|
|
|
@if ! cmp --silent build/pre-requis.pdf pre-requis_*.pdf; then \
|
|
|
|
touch pre-requis_tmp.pdf; \
|
|
|
|
rm pre-requis*.pdf; \
|
|
|
|
cp build/pre-requis.pdf pre-requis_${timestamp}.pdf; \
|
|
|
|
echo "Updated"; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
ctd1: ctd1.tex
|
|
|
|
@latexmk -pdf ctd1.tex
|
|
|
|
@if ! cmp --silent build/ctd1.pdf ctd1_*.pdf; then \
|
|
|
|
touch ctd1_tmp.pdf; \
|
|
|
|
rm ctd1*.pdf; \
|
|
|
|
cp build/ctd1.pdf ctd1_${timestamp}.pdf; \
|
2021-09-15 09:19:34 +02:00
|
|
|
echo "Updated"; \
|
|
|
|
fi
|
|
|
|
|
2021-10-19 16:55:54 +02:00
|
|
|
ctd2: ctd2.tex
|
|
|
|
@latexmk -pdf ctd2.tex
|
|
|
|
@if ! cmp --silent build/ctd2.pdf ctd2_*.pdf; then \
|
|
|
|
touch ctd2_tmp.pdf; \
|
|
|
|
rm ctd2*.pdf; \
|
|
|
|
cp build/ctd2.pdf ctd2_${timestamp}.pdf; \
|
|
|
|
echo "Updated"; \
|
|
|
|
fi
|
|
|
|
|
2021-11-06 13:29:34 +01:00
|
|
|
ctd3: ctd3.tex
|
|
|
|
@latexmk -pdf ctd3.tex
|
|
|
|
@if ! cmp --silent build/ctd3.pdf ctd3_*.pdf; then \
|
|
|
|
touch ctd3_tmp.pdf; \
|
|
|
|
rm ctd3*.pdf; \
|
|
|
|
cp build/ctd3.pdf ctd3_${timestamp}.pdf; \
|
|
|
|
echo "Updated"; \
|
|
|
|
fi
|
|
|
|
|
2021-09-15 09:19:34 +02:00
|
|
|
clean:
|
|
|
|
@rm -rf build 2>/dev/null
|