efrei/unix/Makefile

14 lines
320 B
Makefile

filename=$(shell basename $(shell pwd))
timestamp=$(shell date +%Y-%m-%d_%H:%M)
all: tp1
tp1: tp1_20210910.tex
@latexmk -pdf tp1_20210910.tex
@if ! cmp --silent build/tp1_20210910.pdf tp1_20210910.pdf; then \
cp build/tp1_20210910.pdf tp1_20210910.pdf; \
echo "Updated"; \
fi
clean:
@rm -rf build 2>/dev/null