-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
51 lines (40 loc) · 1.05 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
.PHONY: all clean
all: setup.data
ocaml setup.ml -build
setup.ml:
oasis setup
setup.data: setup.ml
ocaml setup.ml -configure
install: all
ocaml setup.ml -install
uninstall:
ocamlfind remove otypescript
#######################################################
#ts:
# tsc -d test/test.ts
#
#js:
# ocamlbuild -use-ocamlfind jsserver.byte
# ocamlbuild -use-ocamlfind test_ml.byte
# js_of_ocaml -pretty -debuginfo -sourcemap test_ml.byte -o test/test_ml.js
#
#lib.ml:
# ./otypescript.byte -i ../forks/DefinitelyTyped/_infrastructure/tests/typescript/0.9.7/lib.d.ts
#
#test_lib.byte: lib.ml test_lib/test_lib.ml
# ocamlbuild -use-ocamlfind test_lib.byte
#
#test_lib.js: test_lib.byte
# js_of_ocaml test_lib.byte
#######################################################
bisect:
bisect-report -I _build -html cov bisect*.out
bisect-clean:
- rm -fr cov
- rm bisect*.out
#######################################################
clean: bisect-clean
- rm -fr *~
- rm -fr test/*~
- rm test/test.d.ts test/test.js test/test_ml.js test/test.map
ocaml setup.ml -clean