-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
56 lines (40 loc) · 1016 Bytes
/
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
.PHONY: help universe dune submodules clean install-opam-deps dunestrap
# This build works without dune being installed. In order for this to work, we
# use the bootstrapping mechanism in the build of dune.
ifdef OS
EXE=.exe
else
EXE=
endif
DUNE=./dune-ocaml/_build/install/default/bin/dune$(EXE)
OPAM_DEPS=\
ocamlfind \
zarith \
menhir
help:
@echo "Welcome to Coq Universe, do 'make universe' to build"
@echo "If the submodules are not fetched, first do 'make submodules'"
$(DUNE):
cd dune-ocaml && make release
# For interactive use
DUNEOPT?=
dunestrap:
make -C coq-master dunestrap
universe: $(DUNE)
$(DUNE) build @install $(DUNEOPT)
dune: $(DUNE)
$(DUNE) $(ARGS)
submodules:
git submodule update --init --recursive
submodules-deinit:
git submodule deinit -f .
SUBMODULES?= \
coq-master \
dune-ocaml \
submodules-init:
git submodule update --init $(SUBMODULES)
clean: $(DUNE)
$(DUNE) clean
$(DUNE) clean --root dune-ocaml
install-opam-deps:
opam install $(OPAM_DEPS) -y $(ARGS)