15 lines
336 B
Makefile
15 lines
336 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 >/dev/null 2>&1
|
||
|
@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
|