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