Skip to content

Commit 4155d2a

Browse files
authored
Proper deps for make lib/test.exe (rescript-lang#86)
1 parent 0ec18d1 commit 4155d2a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

syntax/Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,8 @@ TEST_FILES = \
4545

4646
lib/napkinscript.exe: $(FILES)
4747
$(OCAMLOPT) $(OCAMLFLAGS) -O2 -o ./lib/napkinscript.exe -I +compiler-libs ocamlcommon.cmxa -I src $(FILES)
48-
49-
build-native: lib/refmt.exe lib/napkinscript.exe depend
5048

49+
build-native: lib/refmt.exe lib/napkinscript.exe depend
5150

5251
bootstrap: build-native
5352
ocaml unix.cma ./scripts/bspack.ml -bs-main Napkin_cli -I src -o ./lib/napkinscript.ml
@@ -67,7 +66,7 @@ lib/bench.exe: benchmarks/refmt_main3b.cmx benchmarks/Benchmark.ml $(FILES)
6766
benchmarks/refmt_main3b.cmx: benchmarks/refmt_main3b.ml
6867
$(OCAMLOPT) -c -O2 -I +compiler-libs ocamlcommon.cmxa benchmarks/refmt_main3b.ml
6968

70-
lib/test.exe: $(TEST_FILES) tests/napkin_test.cmx depend
69+
lib/test.exe: $(TEST_FILES) build-native tests/napkin_test.cmx
7170
$(OCAMLOPT) $(OCAMLFLAGS) -O2 -o ./lib/test.exe -bin-annot -I +compiler-libs ocamlcommon.cmxa -I src -I tests $(FILES) $(TEST_FILES) tests/napkin_test.cmx
7271

7372
test: build-native lib/test.exe

0 commit comments

Comments
 (0)