@@ -36,13 +36,17 @@ 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/ocaml_pack : ./bin/ocaml_pack .mli ./bin/ocaml_pack .ml
39
+ ./bin/ocamlpack : ./bin/ocamlpack .mli ./bin/ocamlpack .ml
40
40
$(NATIVE ) -w -a -I bin -I +compiler-libs ocamlcommon.cmxa unix.cmxa $^ -o $@
41
41
42
- snapshot : ./bin/ocaml_pack snapshotcmj
42
+ # # order matters
43
+ _build/ocamlpack : _build/ext/ext.cmxa _build/common/common.cmxa _build/syntax/pack.cmxa _build/syntax/ocaml_pack_main.cmx
44
+ $(NATIVE ) -I +compiler-libs ocamlcommon.cmxa unix.cmxa $^ -o $@
45
+
46
+ snapshot : ./bin/ocamlpack snapshotcmj
43
47
$(MAKE ) snapshotml
44
48
45
- snapshotml :./bin/ocaml_pack ./bin/compiler.mllib
49
+ snapshotml :./bin/ocamlpack ./bin/compiler.mllib
46
50
@echo " Snapshot ml"
47
51
$< bin/compiler.mllib > bin/compiler.ml
48
52
snapshotcmj :
@@ -85,14 +89,14 @@ world-test:
85
89
cd test && $(MAKE ) all
86
90
@echo " Making test finsihed"
87
91
88
- travis-world-test :./bin/ocaml_pack
92
+ travis-world-test :./bin/ocamlpack
89
93
@echo " Generating the compiler"
90
94
rm -f bin/compiler.ml
91
- ./bin/ocaml_pack ./bin/compiler.mllib > bin/compiler.ml
95
+ ./bin/ocamlpack ./bin/compiler.mllib > bin/compiler.ml
92
96
@echo " Generating the compiler finished"
93
97
$(MAKE ) world-test
94
98
95
- # no depend on ./bin/ocaml_pack ./bin/bsc
99
+ # no depend on ./bin/ocamlpack ./bin/bsc
96
100
# since in npm mode, they are generated from a single file
97
101
install :
98
102
cp ./bin/bsc ../bin/
0 commit comments