summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..f8fc596
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,16 @@
1IMAGE_NAME = latex
2MAIN_TEX = main.tex
3OUT_PDF = main.pdf
4HOST_DIR := $(shell pwd)
5
6build:
7 docker build -t $(IMAGE_NAME) .
8
9compile:
10 docker run --rm -v "$(HOST_DIR)":/data $(IMAGE_NAME) latexmk -pdf -shell-escape $(MAIN_TEX)
11
12bib:
13 docker run --rm -v "$(HOST_DIR)":/data $(IMAGE_NAME) bibtex $(basename $(MAIN_TEX))
14
15cleanall:
16 git clean -xdf