@@ -36,32 +36,32 @@ release:snapshot
36
36
# TODO: should be done after we do the build
37
37
# Carefully check the stored data if it is platform independent
38
38
39
- ./bin/ocamlpack : ./bin/ocamlpack .mli ./bin/ocamlpack .ml
39
+ ./bin/bspack : ./bin/bspack .mli ./bin/bspack .ml
40
40
$(NATIVE ) -w -a -I bin -I +compiler-libs ocamlcommon.cmxa unix.cmxa $^ -o $@
41
41
42
42
# # order matters
43
- _build/ocamlpack : _build/ext/ext.cmxa _build/common/common.cmxa _build/depends/depends.cmxa _build/ocamlpack_main .cmx
43
+ _build/bspack : _build/ext/ext.cmxa _build/common/common.cmxa _build/depends/depends.cmxa _build/bspack_main .cmx
44
44
$(NATIVE ) -I +compiler-libs ocamlcommon.cmxa unix.cmxa $^ -o $@
45
45
46
- snapshot : ./bin/ocamlpack snapshotcmj
46
+ snapshot : ./bin/bspack snapshotcmj
47
47
$(MAKE ) snapshotml
48
48
49
- snapshotml :./bin/ocamlpack ./bin/compiler.mllib ./bin/bs_ppx.mllib
49
+ snapshotml :./bin/bspack ./bin/compiler.mllib ./bin/bs_ppx.mllib
50
50
@echo " Snapshot ml"
51
51
$< bin/compiler.mllib > bin/compiler.ml
52
52
$< bin/bs_ppx.mllib > bin/bs_ppx.ml
53
53
snapshotcmj :
54
54
@echo " Collecting cmj files"
55
55
ocamlbuild -cflags $(OCAMLBUILD_CFLAGS ) -lflags -I,+compiler-libs,ocamlcommon.cmxa js_pack.native --
56
56
57
- bootocamlpack : ./bin/ocamlpack
58
- @echo " Bootstrap ocamlpack "
59
- ./bin/ocamlpack bin/ocamlpack .mllib > ./bin/ocamlpack .ml
60
- $(NATIVE ) -w -40 -I +compiler-libs unix.cmxa ocamlcommon.cmxa -I bin bin/ocamlpack .mli bin/ocamlpack .ml -o bin/ocamlpack
61
- @echo " Using the bootstrapped ocamlpack to genreate new ocamlpack .ml: ` date` "
62
- ./bin/ocamlpack bin/ocamlpack .mllib > ./bin/ocamlpack .ml
63
- @echo " Bootstrap seems finished, please check diffs in ocamlpack "
64
- git diff bin/ocamlpack .ml
57
+ bootbspack : ./bin/bspack
58
+ @echo " Bootstrap bspack "
59
+ ./bin/bspack bin/bspack .mllib > ./bin/bspack .ml
60
+ $(NATIVE ) -w -40 -I +compiler-libs unix.cmxa ocamlcommon.cmxa -I bin bin/bspack .mli bin/bspack .ml -o bin/bspack
61
+ @echo " Using the bootstrapped bspack to genreate new bspack .ml: ` date` "
62
+ ./bin/bspack bin/bspack .mllib > ./bin/bspack .ml
63
+ @echo " Bootstrap seems finished, please check diffs in bspack "
64
+ git diff bin/bspack .ml
65
65
66
66
releasebuild :
67
67
@echo " Make release compiler"
@@ -100,17 +100,17 @@ world-test:
100
100
cd test && $(MAKE ) all
101
101
@echo " Making test finsihed"
102
102
103
- travis-world-test :./bin/ocamlpack
103
+ travis-world-test :./bin/bspack
104
104
@echo " Generating the compiler"
105
105
rm -f bin/compiler.ml bin/bs_ppx.ml
106
106
$(MAKE ) snapshotml
107
107
@echo " Generating the compiler finished"
108
108
$(MAKE ) world-test
109
109
110
- # no depend on ./bin/ocamlpack ./bin/bsc
110
+ # no depend on ./bin/bspack ./bin/bsc
111
111
# since in npm mode, they are generated from a single file
112
112
install :
113
- cp ./bin/bsc ./bin/bsppx ../bin/
113
+ cp ./bin/bsc ./bin/bsppx ./bin/bspack . ./bin/
114
114
cp ./runtime/* .cmt* ./runtime/* .cmj* ./stdlib/* .cm* ./others/* .cm* ../lib/ocaml/
115
115
cp ./runtime/js.ml ./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
116
0 commit comments