Skip to content

Commit 04b6cff

Browse files
committed
add wast.js rule
1 parent 9a99b26 commit 04b6cff

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

interpreter/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
NAME = wasm
1313
OPT = $(NAME).exe
1414
ZIP = $(NAME).zip
15-
JSLIB = wast.bc.js
15+
JSLIB = wast.js
1616

1717
BUILDDIR = _build/default
1818

@@ -41,7 +41,7 @@ smallint.exe:
4141

4242
# Building JavaScript library
4343

44-
wast.bc.js:
44+
$(JSLIB):
4545
dune build $@
4646

4747
# Executing test suite

interpreter/dune

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@
2929
(libraries js_of_ocaml wasm)
3030
(preprocess (pps js_of_ocaml-ppx)))
3131

32+
(rule
33+
(targets wast.js)
34+
(deps wast.bc.js)
35+
(action (copy wast.bc.js wast.js)))
36+
3237
(subdir
3338
text
3439
(rule

0 commit comments

Comments
 (0)