efrei/theorie-signal/exercices/Makefile

18 lines
363 B
Makefile

TIMESTAMP=$(shell date +%Y-%m-%d_%H%M)
CURRENT_TD1 := $(wildcard td1_*.pdf)
ifeq ($(strip $(CURRENT_TD1)),)
override CURRENT_TD1 = bogus_td1.pdf
endif
all: $(CURRENT_TD1)
$(CURRENT_TD1): build/td1.pdf
@rm -f $(CURRENT_TD1)
@cp build/td1.pdf td1_${TIMESTAMP}.pdf
@echo Updated
build/td1.pdf: td1.tex
@latexmk -pdf td1.tex
clean:
@rm -rf build 2>/dev/null