aboutsummaryrefslogtreecommitdiff
path: root/doc/Makefile
blob: 8d374769aa060237c33536ba6aa5177ccb17942a (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
.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/conclusions.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)
	xelatex -shell-escape -output-directory $(outputFolder) tex/$(docName).tex
	mv $(outputFolder)/$(docName).pdf .

.puml.png:
	plantuml $<

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