-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
55 lines (46 loc) · 1.45 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
all: concert theory
.PHONY: all
concert:
+@make -C ConCert/utils
+@make -C ConCert/execution
.PHONY: concert
CoqMakefile: _CoqProject
coq_makefile -f _CoqProject -o CoqMakefile
theory: concert CoqMakefile
+@make -f CoqMakefile
.PHONY: theory
clean: CoqMakefile
+@make -f CoqMakefile clean
+@make -C ConCert/utils clean
+@make -C ConCert/execution clean
rm -f CoqMakefile
.PHONY: clean
install: CoqMakefile
+@make -f CoqMakefile install
.PHONY: install
uninstall: CoqMakefile
+@make -f CoqMakefile uninstall
.PHONY: uninstall
# Forward most things to Coq makefile. Use 'force' to make this phony.
%: CoqMakefile force
+@make -f CoqMakefile $@
force: ;
# Do not forward these files
Makefile _CoqProject: ;
html: all
rm -rf docs
mkdir docs
coqdoc --html --interpolate --parse-comments \
--with-header ConCert/extra/header.html --with-footer ConCert/extra/footer.html \
--toc \
--external https://plv.mpi-sws.org/coqdoc/stdpp stdpp \
--external https://metacoq.github.io/html MetaCoq \
--external https://coq-community.org/coq-ext-lib/v0.11.7 ExtLib \
-R theories/custodian ConCert.x4c.Custodian \
-R theories/fa2 ConCert.x4c.FA2 \
-d docs `find . -type f \( -wholename "*theories/*" \) -name "*.v" ! -wholename "./ConCert/*" ! -wholename "./_opam/*"`
cp ConCert/extra/resources/coqdocjs/*.js docs
cp ConCert/extra/resources/coqdocjs/*.css docs
cp ConCert/extra/resources/toc/*.js docs
cp ConCert/extra/resources/toc/*.css docs
.PHONY: html