makefile 815 Bytes
Newer Older
1
2
3
#!/bin/make -f

EXAMPLES = examples/2h_fake.pdf examples/tabular.pdf examples/figure.pdf examples/preamble.pdf
4
EXAMPLE_INPUTS = $(wildcard examples/*.tex)
5
6
ZETAS_TEX = $(shell for i in $$(seq 0 8); do echo beispieldokument/zeta_$$i.tex; done)
ZETAS_PDF = $(shell for i in $$(seq 0 8); do echo beispieldokument/zeta_$$i.pdf; done)
7

8
latex.pdf: latex.tex $(EXAMPLES) $(EXAMPLE_INPUTS) $(ZETAS_PDF)
9
10
	latexmk -lualatex latex.tex

11
12
13
14
15
16
$(ZETAS_PDF): $(ZETAS_TEX)
	cd beispieldokument;\
		for i in $(shell seq 0 8); do \
			latexmk -lualatex zeta_$$i.tex; \
		done;

17
notes.pdf: latex.tex $(EXAMPLES) $(EXAMPLE_INPUTS)
18
	latexmk -lualatex notes.tex
19
20
21

examples/2h_fake.pdf: examples/2h_fake.tex
	cd examples; latexmk --lualatex 2h_fake.tex
22
23
24

examples/preamble.pdf: examples/preamble.tex
	cd examples; latexmk --lualatex preamble.tex