-
Notifications
You must be signed in to change notification settings - Fork 19
/
Makefile
67 lines (56 loc) · 1.59 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
all: utils execution embedding extraction
.PHONY: all
utils:
+make -C utils
.PHONY: utils
execution: utils
+make -C execution
.PHONY: execution
embedding: utils execution
+make -C embedding
.PHONY: embedding
extraction: utils execution embedding
+make -C extraction
.PHONY: extraction
clean:
+make -C utils clean
+make -C execution clean
+make -C embedding clean
+make -C extraction clean
rm -rf docs
.PHONY: clean
install: all
+make -C utils install
+make -C execution install
+make -C embedding install
+make -C extraction install
.PHONY: install
uninstall: all
+make -C utils uninstall
+make -C execution uninstall
+make -C embedding uninstall
+make -C extraction uninstall
.PHONY: uninstall
test-extraction:
cd ./extraction/examples/elm-extract/; elm-test
cd ./extraction/examples/elm-web-extract/; elm make src/Main.elm
$(foreach file, $(wildcard ./extraction/examples/liquidity-extract/tests/*.liq), liquidity $(file);)
.PHONY: test-extraction
process-extraction-examples:
+make -C extraction process-extraction-examples
.PHONY: process-extraction-examples
clean-extraction-examples:
+make -C extraction clean-extraction-examples
.PHONY: clean-extraction-examples
html: all
rm -rf docs
mkdir docs
coqdoc --html --interpolate --parse-comments \
--with-header extra/header.html --with-footer extra/footer.html \
-R utils/theories ConCert.Utils \
-R execution/theories ConCert.Execution \
-R embedding/theories ConCert.Embedding \
-R extraction/theories ConCert.Extraction \
-d docs `find . -type f -wholename "*theories/*" -name "*.v"`
cp extra/resources/* docs
.PHONY: html