efrei/network-protocols/Makefile

29 lines
556 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-26 14:57:19 +02:00
all: tp1 tp2 tp3
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
2021-10-26 14:57:19 +02:00
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
2021-10-05 09:14:50 +02:00
clean:
@rm -rf build 2>/dev/null