forked from matijapretnar/eff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
59 lines (40 loc) · 1.21 KB
/
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
51
52
53
54
55
56
57
58
59
# OASIS_START
# DO NOT EDIT (digest: 4d265c1dbe34db850ba8f3cfa7396db0)
SETUP = ocaml setup.ml
build: setup.data
$(SETUP) -build $(BUILDFLAGS)
doc: setup.data build
$(SETUP) -doc $(DOCFLAGS)
all:
$(SETUP) -all $(ALLFLAGS)
install: setup.data
$(SETUP) -install $(INSTALLFLAGS)
uninstall: setup.data
$(SETUP) -uninstall $(UNINSTALLFLAGS)
reinstall: setup.data
$(SETUP) -reinstall $(REINSTALLFLAGS)
clean:
$(SETUP) -clean $(CLEANFLAGS)
distclean:
$(SETUP) -distclean $(DISTCLEANFLAGS)
setup.data:
$(SETUP) -configure $(CONFIGUREFLAGS)
configure:
$(SETUP) -configure $(CONFIGUREFLAGS)
.PHONY: build doc all install uninstall reinstall clean distclean configure
# OASIS_STOP
OCAMLBUILD ?= ocamlbuild
JSFLAGS = -use-menhir -menhir "menhir --explain" -use-ocamlfind -plugin-tag "package(js_of_ocaml.ocamlbuild)"
jseff:
$(OCAMLBUILD) $(JSFLAGS) src/jseff.js
cp _build/src/jseff.js docs/try
eff: setup.data
$(SETUP) -build $(BUILDFLAGS)
# "make test" to see if anything broke
test: eff
cd tests/regression && sh ./test.sh
# "make test-validate" to see if anything broke
# and ask for validation of possibly broken things.
test-validate: eff
cd tests/regression && sh ./test.sh -v
.PHONY: test test-validate jseff