-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (22 loc) · 725 Bytes
/
Makefile
File metadata and controls
30 lines (22 loc) · 725 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
.PHONY: all clean snippets slides/build/main.pdf
PDF_SLIDES = slides.pdf
PDF_EXERCISE = exercise.pdf
all: $(PDF_SLIDES) $(PDF_EXERCISE)
$(PDF_SLIDES): slides/build/main.pdf
cp $< $@
$(PDF_EXERCISE): exercise/build/main.pdf
cp $< $@
slides/build/main.pdf:
./make_print_version.py slides/part1.tex && \
./make_print_version.py slides/part2.tex && \
cd slides && mkdir -p build && \
lualatex -halt-on-error -jobname=build/main main.tex
exercise/build/main.pdf: $(shell find exercise -name '*.tex')
cd exercise && mkdir -p build && \
lualatex -halt-on-error -jobname=build/main main.tex
snippets:
make -f Makefile.snippets
clean:
make clean -f Makefile.snippets
rm -f slides/build/*
rm -f exercise/build/*