@@ -46,7 +46,7 @@ _build/ocamlpack: _build/ext/ext.cmxa _build/common/common.cmxa _build/depends/
46
46
snapshot : ./bin/ocamlpack snapshotcmj
47
47
$(MAKE ) snapshotml
48
48
49
- snapshotml :./bin/ocamlpack ./bin/compiler.mllib
49
+ snapshotml :./bin/ocamlpack ./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
@@ -67,12 +67,14 @@ releasebuild:
67
67
@echo " Make release compiler"
68
68
$(NATIVE ) -g -inline 1000 -linkall -w -a -I +compiler-libs -I bin ocamlcommon.cmxa bin/compiler.mli bin/compiler.ml -o bin/bsc
69
69
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
70
72
stdlib :
71
73
cd stdlib && ./build.sh
72
74
73
75
world :
74
76
@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
76
78
@echo " Making compiler finished"
77
79
78
80
@echo "Making stdlib cmis"
@@ -100,23 +102,22 @@ world-test:
100
102
101
103
travis-world-test :./bin/ocamlpack
102
104
@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
105
107
@echo " Generating the compiler finished"
106
108
$(MAKE ) world-test
107
109
108
110
# no depend on ./bin/ocamlpack ./bin/bsc
109
111
# since in npm mode, they are generated from a single file
110
112
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
+
118
118
119
119
120
+ # TMP_OCAMLLIB=$(shell ocamlopt.opt -where)
120
121
# big-world:bin/big_compiler.ml bin/big_compiler.mli
121
122
# @echo "Making compiler"
122
123
# 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)
134
135
135
136
136
137
.PHONY : stdlib
137
- .PHONY : test quicktest release snapshot snapshotcmj
138
+ .PHONY : test quicktest release snapshot snapshotcmj releasebuild
138
139
139
140
140
141
0 commit comments