-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·23 lines (16 loc) · 936 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
TEXFILE = operatoralgebren.tex
BASEDIR=$(CURDIR)/OpAlg_WS15
OUTPUTDIR=$(BASEDIR)/output
help:
@echo 'Makefile for automatic LaTeX compilation '
@echo ' '
@echo 'Usage: '
@echo ' make clean remove the generated files '
@echo ' make build generate files '
@echo ' '
clean:
[ ! -d $(OUTPUTDIR) ] || rm -rf $(OUTPUTDIR)
build:
# sudo docker run -it -v $(BASEDIR):/var/texlive texlive sh -c "latexmk -pdflatex="xelatex --shell-escape %O %S" -pdf -dvi- -ps- -cd -f -interaction=nonstopmode $(TEXFILE)"
docker run -it --rm -v $(CURDIR):/var/texlive texlive sh -c "ls -a; ./compile_all.sh"
.PHONY: help clean build