efrei/network-protocols/Makefile

22 lines
411 B
Makefile
Raw Normal View History

2021-10-05 09:14:50 +02:00
filename=$(shell basename $(shell pwd))
timestamp=$(shell date +%Y-%m-%d_%H:%M)
2021-10-18 14:42:24 +02:00
all: tp1 tp2
2021-10-05 09:14:50 +02:00
2021-10-18 14:42:24 +02:00
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; \
2021-10-05 09:14:50 +02:00
echo "Updated"; \
fi
clean:
@rm -rf build 2>/dev/null