forked from mirage/mirage-net-unix
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (26 loc) · 685 Bytes
/
Copy pathMakefile
File metadata and controls
37 lines (26 loc) · 685 Bytes
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
.PHONY: all clean install build
all: build doc
NAME=mirage-net-unix
J=4
export OCAMLRUNPARAM=b
setup.bin: setup.ml
@ocamlopt.opt -o $@ $< || ocamlopt -o $@ $< || ocamlc -o $@ $<
@rm -f setup.cmx setup.cmi setup.o setup.cmo
setup.data: setup.bin
@./setup.bin -configure --enable-tests
build: setup.data setup.bin
@./setup.bin -build -j $(J)
doc: setup.data setup.bin
@./setup.bin -doc -j $(J)
install: setup.bin
@./setup.bin -install
uninstall:
@ocamlfind remove $(NAME) || true
test: setup.bin build
@./setup.bin -test
reinstall: setup.bin
@ocamlfind remove $(NAME) || true
@./setup.bin -reinstall
clean:
@ocamlbuild -clean
@rm -f setup.data setup.log setup.bin