aboutsummaryrefslogtreecommitdiff
path: root/slides/2018-ct-intro/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'slides/2018-ct-intro/makefile')
-rw-r--r--slides/2018-ct-intro/makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/slides/2018-ct-intro/makefile b/slides/2018-ct-intro/makefile
new file mode 100644
index 0000000..b42d0ec
--- /dev/null
+++ b/slides/2018-ct-intro/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