aboutsummaryrefslogtreecommitdiff
path: root/doc/Makefile
blob: 554b0c53f8f51dc9f03795d427a6a23ad6e4923a (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_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

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