aboutsummaryrefslogtreecommitdiff
path: root/doc/Makefile
blob: 472de8e11af8b68286bfaa7abbae9c8679e4f84f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
.SUFFIXES: .puml .png

docName = imago
outputFolder = out

texFiles = tex/$(docName).tex tex/introduction.tex tex/planning.tex tex/systemAnalysis.tex tex/systemDesign.tex tex/implementation.tex tex/results.tex tex/appendixes.tex tex/conclusions.tex tex/glossary.tex tex/license.tex tex/biber.bib

diagramImgs = diagrams/planningWorkPlanEngine.png diagrams/planningWorkPlanGame.png diagrams/useCases.png diagrams/analysisClasses.png diagrams/useCase_generateAMove.png diagrams/useCase_useAsBackend.png diagrams/useCase_trainTheEngine.png diagrams/useCase_playAMatch.png diagrams/interfaces.png diagrams/gameModule.png diagrams/engineModule.png diagrams/trainingModule.png diagrams/modules.png diagrams/fullClasses.png

imgs = img/imago.jpg img/models/denseModel.png img/models/convModel.png

listings = listings/denseModel.txt listings/convModel.txt listings/denseTraining.txt listings/convTraining.txt listings/trainCommand.sh listings/testOutput.txt

all: $(docName).pdf

$(docName).pdf: $(texFiles) $(diagramImgs) $(imgs) $(listings) Makefile
	[ -d $(outputFolder) ] || mkdir $(outputFolder)
	xelatex -shell-escape -output-directory $(outputFolder) tex/$(docName).tex
	biber $(outputFolder)/$(docName)
	makeglossaries -d $(outputFolder) $(docName)
	xelatex -shell-escape -output-directory $(outputFolder) tex/$(docName).tex
	mv $(outputFolder)/$(docName).pdf .

.puml.png:
	plantuml $<

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