efrei/theorie-signal/exercices/Makefile

25 lines
481 B
Makefile
Raw Normal View History

2021-11-09 15:25:26 +01:00
timestamp=$(shell date +%Y-%m-%d_%H:%M)
2022-01-04 00:23:50 +01:00
all: td1 tp1
2021-11-09 15:25:26 +01:00
2021-11-21 12:06:34 +01:00
td1: td1.tex
@latexmk -pdf td1.tex
@if ! cmp --silent build/td1.pdf td1_*.pdf; then \
touch td1_tmp.pdf; \
rm td1*.pdf; \
cp build/td1.pdf td1_${timestamp}.pdf; \
2021-11-09 15:25:26 +01:00
echo "Updated"; \
fi
2022-01-04 00:23:50 +01:00
tp1: tp1.tex
@latexmk -pdf tp1.tex
@if ! cmp --silent build/tp1.pdf tp1_*.pdf; then \
touch tp1_tmp.pdf; \
rm tp1*.pdf; \
cp build/tp1.pdf tp1_${timestamp}.pdf; \
echo "Updated"; \
fi
2021-11-09 15:25:26 +01:00
clean:
@rm -rf build 2>/dev/null