-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
50 lines (34 loc) · 902 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
all: build
ocamlfind_check=$(shell ocamlfind query $(1) > /dev/null 2> /dev/null && echo "true")
LWT=$(call ocamlfind_check,lwt)
ifeq ($(LWT), true)
LWT_FLAG=--enable-lwt
endif
UNIX_FLAG=--enable-unix
TESTS_FLAG=--enable-tests
NAME=osc
J=4
setup.data: setup.ml
ocaml setup.ml -configure $(LWT_FLAG) $(UNIX_FLAG) $(TESTS_FLAG)
build: setup.data
ocaml setup.ml -build -j $(J)
doc: setup.data
ocaml setup.ml -doc -j $(J)
install: setup.data
ocaml setup.ml -install
uninstall:
ocamlfind remove $(NAME)
reinstall: setup.data
ocamlfind remove $(NAME) || true
ocaml setup.ml -reinstall
clean:
ocamlbuild -clean
rm -f setup.data setup.log test.data
test: build
ocaml setup.ml -test
test-interop-sclang: build
./test-interop-sclang.sh
travis-coveralls.sh:
wget https://raw.githubusercontent.com/simonjbeaumont/ocaml-travis-coveralls/master/$@
coverage: travis-coveralls.sh
bash $<