diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2021-01-24 20:47:26 +0100 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2021-01-24 20:59:17 +0100 |
commit | ddde2a9a43daf870c26bef33f47abe45b414c3d0 (patch) | |
tree | 52576f8a97011f733360bc9904f1890867cd8bfd /doc/Makefile | |
download | imago-ddde2a9a43daf870c26bef33f47abe45b414c3d0.tar.gz imago-ddde2a9a43daf870c26bef33f47abe45b414c3d0.zip |
First commit!
Diffstat (limited to 'doc/Makefile')
-rw-r--r-- | doc/Makefile | 23 |
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 |