-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
53 lines (37 loc) · 1.01 KB
/
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
48
49
50
51
52
53
source_dir:=src
source_makes:=$(wildcard ${source_dir}/*/Makefile ${source_dir}/*/*/Makefile)
presentation_dir:=presentation
# TODO git/ocaml
.PHONY: all
all: sources presentation
.PHONY: ocaml_git
ocaml_git:
git submodule update --init --recursive
.PHONY: ocaml
ocaml: | ocaml_git
cd ocaml && ./configure
$(MAKE) -C ocaml
.PHONY: presentation
presentation:
$(MAKE) -C ${presentation_dir}
.PHONY: clean-presentation
clean-presentation:
$(MAKE) -C ${presentation_dir} clean
.PHONY: sources
sources:
for mk in $(dir ${source_makes}); do \
$(MAKE) -C $${mk}; \
done
.PHONY: clean-sources
clean-sources:
for mk in $(dir ${source_makes}); do \
$(MAKE) -C $${mk} clean; \
done
buildgraph.pdf: buildgraph.tex presentation/diagrams/buildgraph/buildgraph.tex
pdflatex --shell-escape -halt-on-error $<
buildgraph.svg: buildgraph.pdf
GS_OPTIONS=-dNEWPDF=false dvisvgm --libgs=/usr/lib/libgs.so --pdf $<
.PHONY: distclean
distclean: clean-presentation clean-sources
.PHONY: re
re: distclean sources presentation