aboutsummaryrefslogtreecommitdiff
path: root/doc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'doc/Makefile')
-rw-r--r--doc/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/Makefile b/doc/Makefile
new file mode 100644
index 0000000..954ae3c
--- /dev/null
+++ b/doc/Makefile
@@ -0,0 +1,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