aboutsummaryrefslogtreecommitdiffstats
path: root/buch/papers/punktgruppen/Makefile
blob: 47affeb75adca2bdf83c37a9419969644d61f382 (plain)
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
#
# Makefile -- make file for the paper punktgruppen
#
# (c) 2020 Prof Dr Andreas Mueller
#
SOURCES := \
	crystals.tex \
	intro.tex \
	main.tex \
	piezo.tex \
	symmetry.tex

TIKZFIGURES := \
	tikz/atoms-grid-still.tex \
	tikz/atoms-grid-force.tex \
	tikz/atoms-piezo-still.tex \
	tikz/atoms-piezo-force-vertical.tex \
	tikz/atoms-piezo-force-horizontal.tex \
	tikz/combine-symmetries.tex \
	tikz/lattice.tex \
	tikz/piezo.tex \
	tikz/projections.tex \
	tikz/symmetric-shapes.tex

FIGURES := $(patsubst tikz/%.tex, figures/%.pdf, $(TIKZFIGURES))

.PHONY: images
images: $(FIGURES)

figures/%.pdf: tikz/%.tex
	mkdir -p figures
	pdflatex --output-directory=figures $<

.PHONY: standalone
standalone: standalone.tex $(SOURCES)
	mkdir -p standalone
	cd ../..; \
		pdflatex \
			--halt-on-error \
			--shell-escape \
			--output-directory=papers/punktgruppen/standalone \
			papers/punktgruppen/standalone.tex;
	cd standalone; \
		bibtex standalone; \
		makeindex standalone;