forked from mirage/mirage
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (32 loc) · 794 Bytes
/
Copy pathMakefile
File metadata and controls
45 lines (32 loc) · 794 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
38
39
40
41
42
43
44
45
.PHONY: all clean install build
all: build test doc
PREFIX ?= /usr/local
NAME=mirage
CONF_FLAGS ?=
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 $(CONF_FLAGS) --prefix $(PREFIX)
build-types:
./build
install-types:
./build true
build: setup.data setup.bin
./setup.bin -build -classic-display
doc: setup.data setup.bin
./setup.bin -doc
install: setup.bin
./setup.bin -install
uninstall: setup.bin
./setup.bin -uninstall
test: setup.bin build
./setup.bin -test
fulltest: 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