efrei/theorie-signal/exercices/Makefile

17 lines
353 B
Makefile
Raw Normal View History

2021-11-09 15:25:26 +01:00
filename=$(shell basename $(shell pwd))
timestamp=$(shell date +%Y-%m-%d_%H:%M)
all: dsf
dsf: dsf.tex
@latexmk -pdf dsf.tex
@if ! cmp --silent build/dsf.pdf ${filename}_*.pdf; then \
touch ${filename}_tmp.pdf; \
rm ${filename}*.pdf; \
cp build/dsf.pdf ${filename}_${timestamp}.pdf; \
echo "Updated"; \
fi
clean:
@rm -rf build 2>/dev/null