efrei/unix/Makefile

19 lines
355 B
Makefile
Raw Normal View History

2023-03-09 13:33:15 +01:00
TIMESTAMP=$(shell date +%Y-%m-%d_%H%M)
CURRENT_TP1 := $(wildcard tp1_*.pdf)
ifeq ($(strip $(CURRENT_TP1)),)
override CURRENT_TP1 = bogus_tp1.pdf
endif
2021-09-09 20:23:57 +02:00
2023-03-09 13:33:15 +01:00
all: $(TP1)
2021-09-09 20:23:57 +02:00
2023-03-09 13:33:15 +01:00
$(CURRENT_TP1): build/tp1.pdf
@rm -f $(CURRENT_TP1)
@cp build/tp1.pdf tp1_${TIMESTAMP}.pdf
@echo Updated
build/tp1.pdf: tp1.tex
@latexmk -pdf tp1.tex
2021-09-09 20:23:57 +02:00
clean:
@rm -rf build 2>/dev/null