-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
49 lines (42 loc) · 948 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
# Build everything from here:
#
# make
# make test
# make install
#
# If 'make test' fails, visit test/ and work from there.
#
# Choices are 'default' or 'static'. See root 'dune' file.
ifndef DUNE_PROFILE
DUNE_PROFILE = default
endif
export DUNE_PROFILE
.PHONY: build
build:
dune build @install --profile $(DUNE_PROFILE)
.PHONY: test
test:
ln -sf ../_build/install/default/bin/dune-deps test/
dune exec src/test/test.exe
$(MAKE) -C test
.PHONY: install
install:
dune install
.PHONY: clean
clean:
git clean -dfX
# You can stick this section in your own project if you wish.
# 'make graph' produces a image that can be included in 'README.md'.
#
.PHONY: graph deps.png
graph: deps.png
deps.png:
mkdir -p img
dune-deps src | tred | dot -Tpng > img/deps.png
# This is only part of the release process.
# See complete release instructions in CONTRIBUTING.md.
#
.PHONY: opam-release
opam-release:
dune-release tag
dune-release bistro