efrei/art-argumenter/plaidoyer/Makefile

25 lines
628 B
Makefile
Raw Normal View History

2021-12-06 16:32:31 +01:00
timestamped_file=$(shell date +%Y-%m-%d_%H:%M)
2021-12-06 16:42:50 +01:00
all: ecrit oral
2021-12-06 16:32:31 +01:00
2021-12-06 16:42:50 +01:00
ecrit: plaidoyer.tex
@latexmk -pdf plaidoyer.tex
@if ! cmp --silent build/plaidoyer.pdf plaidoyer_*.pdf; then \
touch plaidoyer_tmp.pdf; \
rm plaidoyer*.pdf; \
cp build/plaidoyer.pdf plaidoyer_${timestamped_file}.pdf; \
echo "Updated"; \
fi
oral: presentation.tex
@latexmk -pdf presentation.tex
@if ! cmp --silent build/presentation.pdf presentation_*.pdf; then \
touch presentation_tmp.pdf; \
rm presentation*.pdf; \
cp build/presentation.pdf presentation_${timestamped_file}.pdf; \
2021-12-06 16:32:31 +01:00
echo "Updated"; \
fi
clean:
@rm -rf build 2>/dev/null