Skip to content

Commit a5096e9

Browse files
author
Hongbo Zhang
committed
install bsppx and needed source code for merlin
1 parent cc0b118 commit a5096e9

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

jscomp/Makefile

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ _build/ocamlpack: _build/ext/ext.cmxa _build/common/common.cmxa _build/depends/
4646
snapshot: ./bin/ocamlpack snapshotcmj
4747
$(MAKE) snapshotml
4848

49-
snapshotml:./bin/ocamlpack ./bin/compiler.mllib
49+
snapshotml:./bin/ocamlpack ./bin/compiler.mllib ./bin/bs_ppx.mllib
5050
@echo "Snapshot ml"
5151
$< bin/compiler.mllib > bin/compiler.ml
5252
$< bin/bs_ppx.mllib > bin/bs_ppx.ml
@@ -67,12 +67,14 @@ releasebuild:
6767
@echo "Make release compiler"
6868
$(NATIVE) -g -inline 1000 -linkall -w -a -I +compiler-libs -I bin ocamlcommon.cmxa bin/compiler.mli bin/compiler.ml -o bin/bsc
6969

70+
@echo "Make release ppx"
71+
$(NATIVE) -g -inline 1000 -linkall -w -a -I +compiler-libs -I bin ocamlcommon.cmxa bin/bs_ppx.mli bin/bs_ppx.ml -o bin/bsppx
7072
stdlib:
7173
cd stdlib && ./build.sh
7274

7375
world:
7476
@echo "Making compiler"
75-
$(NATIVE) -g -inline 1000 -linkall -w -a -I +compiler-libs -I bin ocamlcommon.cmxa bin/compiler.mli bin/compiler.ml -o bin/bsc
77+
$(MAKE) releasebuild
7678
@echo "Making compiler finished"
7779

7880
@echo "Making stdlib cmis"
@@ -100,23 +102,22 @@ world-test:
100102

101103
travis-world-test:./bin/ocamlpack
102104
@echo "Generating the compiler"
103-
rm -f bin/compiler.ml
104-
./bin/ocamlpack ./bin/compiler.mllib > bin/compiler.ml
105+
rm -f bin/compiler.ml bin/bs_ppx.ml
106+
$(MAKE) snapshotml
105107
@echo "Generating the compiler finished"
106108
$(MAKE) world-test
107109

108110
# no depend on ./bin/ocamlpack ./bin/bsc
109111
# since in npm mode, they are generated from a single file
110112
install:
111-
cp ./bin/bsc ../bin/
112-
cp ./runtime/*.cmt* ../lib/ocaml/
113-
cp ./runtime/*.cmj* ../lib/ocaml/
114-
cp ./runtime/js.cmi ./runtime/js_array.cmi ./runtime/js_string.cmi ./runtime/js_re.cmi ./runtime/js_unsafe.cmi ../lib/ocaml/
115-
cp ./stdlib/*.cm* ../lib/ocaml/
116-
cp ./others/*.cm* ../lib/ocaml/
117-
TMP_OCAMLLIB=$(shell ocamlopt.opt -where)
113+
cp ./bin/bsc ./bin/bsppx ../bin/
114+
cp ./runtime/*.cmt* ./runtime/*.cmj* ./stdlib/*.cm* ./others/*.cm* ../lib/ocaml/
115+
cp ./runtime/js.ml ./runtime/js.mli ./runtime/js.cmi ./runtime/js_array.mli ./runtime/js_array.ml ./runtime/js_array.cmi ./runtime/js_string.ml ./runtime/js_string.mli ./runtime/js_string.cmi ./runtime/js_re.ml ./runtime/js_re.mli ./runtime/js_re.cmi ./runtime/js_unsafe.cmi ../lib/ocaml/
116+
117+
118118

119119

120+
# TMP_OCAMLLIB=$(shell ocamlopt.opt -where)
120121
# big-world:bin/big_compiler.ml bin/big_compiler.mli
121122
# @echo "Making compiler"
122123
# ocamlopt.opt -g -inline 1000 -linkall -w -a -I bin bin/big_compiler.mli bin/big_compiler.ml -o bin/bsc
@@ -134,7 +135,7 @@ TMP_OCAMLLIB=$(shell ocamlopt.opt -where)
134135

135136

136137
.PHONY: stdlib
137-
.PHONY: test quicktest release snapshot snapshotcmj
138+
.PHONY: test quicktest release snapshot snapshotcmj releasebuild
138139

139140

140141

0 commit comments

Comments
 (0)