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