-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (31 loc) · 937 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
CNF_LINE = -cnf-line TEXMFHOME={../,$(shell kpsewhich --var-value TEXMFHOME)}
COMPILER ?= lualatex --interaction=nonstopmode --shell-escape $(CNF_LINE)
RM = rm -f
ifeq ($(OS),Windows_NT)
RM = del
endif
.PHONY: all extra clean clean-all clean-leftovers
.DELETE_ON_ERROR:
all: clean-all regulatory-nl.pdf regulatory-en.pdf
extra: all md-example.pdf
%.aux: %.tex
$(COMPILER) $*
%.glstex: %.aux
bib2gls $*
%.pdf: %.glstex
$(COMPILER) $*
example1-nl.aux: example2-nl.glstex
example1-en.aux: example2-en.glstex
regulatory-nl.pdf: example1-nl.pdf example2-nl.pdf
regulatory-en.pdf: example1-en.pdf example2-en.pdf
md-example.pdf: example1-nl.pdf example2-nl.pdf
clean-%:
latexmk -f -c $*-en
latexmk -f -c $*-nl
clean-all-%:
latexmk -f -C $*-en
latexmk -f -C $*-nl
clean: clean-example1 clean-example2 clean-regulatory
rm -f *.glstex
clean-all: clean-all-example1 clean-all-example2 clean-all-regulatory
rm -f *.glstex