forked from LPCIC/coq-elpi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
65 lines (53 loc) · 1.49 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
dune = dune $(1) $(DUNE_$(1)_FLAGS)
all:
$(call dune,build)
$(call dune,build) builtin-doc
.PHONY: all
build-core:
$(call dune,build) theories
$(call dune,build) builtin-doc
.PHONY: build-core
build-apps:
$(call dune,build) $$(find apps -type d -name theories)
.PHONY: build-apps
build:
$(call dune,build) -p coq-elpi @install
$(call dune,build) builtin-doc
.PHONY: build
test-core:
$(call dune,runtest) tests
$(call dune,build) tests
.PHONY: test-core
test-apps:
$(call dune,build) $$(find apps -type d -name tests)
.PHONY: test-apps
test:
$(call dune,runtest)
$(call dune,build) tests
$(call dune,build) $$(find apps -type d -name tests)
.PHONY: test
examples:
$(call dune,build) examples
.PHONY: examples
doc: build
@echo "########################## generating doc ##########################"
@mkdir -p doc
@$(foreach tut,$(wildcard examples/tutorial*$(ONLY)*.v),\
echo ALECTRYON $(tut) && OCAMLPATH=$(shell pwd)/_build/install/default/lib ./etc/alectryon_elpi.py \
--frontend coq+rst \
--output-directory doc \
--pygments-style vs \
-R $(shell pwd)/_build/install/default/lib/coq/user-contrib/elpi_elpi elpi_elpi \
-R $(shell pwd)/_build/install/default/lib/coq/user-contrib/elpi elpi \
$(tut) &&) true
@cp ./_build/default/examples/stlc.txt doc/
@cp etc/tracer.png doc/
clean:
$(call dune,clean)
.PHONY: clean
install:
$(call dune,install) coq-elpi
.PHONY: install
nix:
nix-shell --arg do-nothing true --run "updateNixToolBox && genNixActions"
.PHONY: nix