Makefile 503 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
.PHONY: default

default:
	latexmk -pdf main.tex

preview: default
	convert -density 150 main.pdf -quality 90 main.png

archive:
	rm -rf build
	mkdir build

	cp report-UTC.cls main.tex LICENSE README.md .gitignore .latexmkrc Makefile build/
	cp -r src Graphismes-UTC build/

	cd build &&	zip -r ../latex-rapport-UTC.zip *

Florent Chehab's avatar
Florent Chehab committed
18
19
20
21
22
23
prepare_deploy: preview archive
	rm -rf deploy
	mkdir deploy

	cp main.pdf latex-rapport-UTC.zip main-0.png main-1.png deploy/

24
25
clean:
	latexmk -C
Florent Chehab's avatar
Florent Chehab committed
26
	rm -rf build deploy *.png *.zip