aboutsummaryrefslogtreecommitdiff
path: root/slides/2019-ctga/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'slides/2019-ctga/makefile')
-rw-r--r--slides/2019-ctga/makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/slides/2019-ctga/makefile b/slides/2019-ctga/makefile
new file mode 100644
index 0000000..b42d0ec
--- /dev/null
+++ b/slides/2019-ctga/makefile
@@ -0,0 +1,25 @@
+.PHONY: clean tidy open
+
+MAIN = main
+
+TEX_SRC = src/$(wildcard:.tex)
+TEX_IMG = \
+ img/$(wildcard:.jpg) \
+ img/$(wildcard:.tex) \
+ img/$(wildcard:.pdf) \
+ img/$(wildcard:.png)
+TEX = \
+ $(TEX_SRC) $(TEX_IMG) $(MAIN).tex
+
+$(MAIN).pdf: $(TEX)
+ pdflatex $(MAIN)
+ @pdflatex $(MAIN)
+
+open: $(MAIN).pdf
+ okular $(MAIN).pdf &
+
+tidy:
+ rm -rf *.nav *.out *.log *.aux *.toc *.snm
+
+clean:
+ rm -rf *.nav *.out *.log *.aux *.toc *.snm $(MAIN).pdf