aboutsummaryrefslogtreecommitdiff
path: root/doc/Makefile
blob: 954ae3c20ee3ac307ddc10f564b73afc01285787 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.SUFFIXES: .puml .png

docName = tfg
outputFolder = out

texFiles = tex/tfg.tex tex/introduction.tex tex/previousWorks.tex tex/interface.tex tex/implementation.tex
diagramImgs = diagrams/gameRepresentation.png diagrams/modules.png diagrams/sgfModule.png diagrams/gtpEngine.png

all: $(docName).pdf

$(docName).pdf: $(texFiles) $(diagramImgs)
	[ -d $(outputFolder) ] || mkdir $(outputFolder)
	xelatex -output-directory $(outputFolder) tex/$(docName).tex
	biber $(outputFolder)/$(docName)
	xelatex -output-directory $(outputFolder) tex/$(docName).tex
	mv $(outputFolder)/$(docName).pdf .

.puml.png:
	plantuml $<

clean:
	rm -r $(outputFolder)
	rm diagrams/*.png