-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (26 loc) · 872 Bytes
/
Makefile
File metadata and controls
37 lines (26 loc) · 872 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
all: build
J=4
setup.ml: _oasis
oasis setup
# sed -i 's/archive(syntax, preprocessor) = "syntax.cma"/archive(syntax, preprocessor) = "ulexing.cma syntax.cma"/g' lib/META
# sed -i 's/archive(syntax, preprocessor, native) = "syntax.cmxa"/archive(syntax, preprocessor, native) = "ulexing.cmxa syntax.cmxa"/g' lib/META
setup.data: setup.ml
./configure --prefix $(shell opam config var prefix)
build: setup.data setup.ml
ocaml setup.ml -build -j $(J)
install: setup.data setup.ml
ocaml setup.ml -install
reinstall: setup.ml
ocaml setup.ml -reinstall
uninstall: setup.ml
ocaml setup.ml -uninstall
test: setup.ml build
ocaml setup.ml -test $(TESTFLAGS)
clean:
ocamlbuild -clean
rm -f setup.ml setup.data setup.log *.out myocamlbuild.ml
distclean:
ocaml setup.ml -distclean
rm -f setup.data setup.log setup.ml *.out myocamlbuild.ml
doc:
ocaml setup.ml -doc