Skip to content

Commit fc8ad36

Browse files
authored
Merge pull request #643 from LPCIC/fix-makefile
support DUNE_FLAGS
2 parents 2c1342a + 401daa2 commit fc8ad36

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

Makefile

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,36 @@
1+
dune = @dune $(1) $(DUNE_FLAGS)
2+
13
all:
2-
@dune build
4+
$(call dune,build)
35
.PHONY: all
46

57
build-core:
6-
@dune build theories
8+
$(call dune,build) theories
79
.PHONY: build-core
810

911
build-apps:
10-
@dune build $$(find apps -type d -name theories)
12+
$(call dune,build) $$(find apps -type d -name theories)
1113
.PHONY: build-apps
1214

1315
build:
14-
@dune build @install
16+
$(call dune,build) @install
1517
.PHONY: build
1618

1719
test-core:
18-
@dune runtest tests
20+
$(call dune,runtest) tests
1921
.PHONY: test-core
2022

2123
test-apps:
22-
@dune build $$(find apps -type d -name tests)
24+
$(call dune,build) $$(find apps -type d -name tests)
2325
.PHONY: test-apps
2426

2527
test:
26-
@dune runtest
27-
@dune build $$(find apps -type d -name tests)
28+
$(call dune,runtest)
29+
$(call dune,build) $$(find apps -type d -name tests)
2830
.PHONY: test
2931

3032
examples:
31-
@dune build examples
33+
$(call dune,build) examples
3234
.PHONY: examples
3335

3436
doc: build
@@ -45,12 +47,12 @@ doc: build
4547
@cp etc/tracer.png doc/
4648

4749
clean:
48-
@dune clean
50+
$(call dune,clean)
4951
.PHONY: clean
5052

5153
install:
52-
@dune build -p coq-elpi
53-
@dune install coq-elpi
54+
$(call dune,build) -p coq-elpi
55+
$(call dune,install) coq-elpi
5456
.PHONY: install
5557

5658
nix:

0 commit comments

Comments
 (0)