forked from simon-schlepphorst/physik512
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile.in
More file actions
35 lines (27 loc) · 861 Bytes
/
Copy pathmakefile.in
File metadata and controls
35 lines (27 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright © 2013-2014 Martin Ueding <dev@martin-ueding.de>
# Licensed under The MIT License
SHELL = /bin/bash
tex = "_build/physik512-$(number)-Schroedel_Schlepphorst.tex"
out = "_build/physik512-$(number)-Schroedel_Schlepphorst.pdf"
makefile = "physik512-$(number)-Schroedel_Schlepphorst.makefile"
all: $(out)
$(out): $(tex)
cd _build && latexmk -pdflatex='pdflatex -halt-on-error -shell-escape $$O $$S' -pdf $$(basename $<)
if [[ -f "_build/$(makefile)" ]]; \
then \
cd _build \
&& $(MAKE) -f "$(makefile)" \
&& latexmk -pdflatex='pdflatex -halt-on-error -shell-escape $$O $$S' -pdf $$(basename $<); \
fi
_build/template.js: crunch
mkdir -p _build
./$<
$(tex): Template.tex _build/template.js
../insert $^ $@
.PHONY: clean
clean:
$(RM) *.class *.jar
$(RM) *.o *.out
$(RM) *.pyc *.pyo
$(RM) *.orig
$(RM) -r _build