Skip to content

Commit a2952b9

Browse files
committed
Fix build.
1 parent 28ddebe commit a2952b9

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

Makefile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,14 @@
22
# ocamlbuild.
33
# Docs: https://github.com/ocaml/ocamlbuild/blob/master/manual/manual.adoc
44

5+
all: byte library
6+
7+
byte:
8+
rebuild -use-ocamlfind src/ReasonNativeProject.byte
9+
510
build:
6-
rebuild -use-ocamlfind src/index.native
11+
rebuild -use-ocamlfind src/ReasonNativeProject.cma
12+
rebuild -use-ocamlfind src/ReasonNativeProject.cmxa
713

814
# some boilerplate to publish a new version to GitHub
915
release:
@@ -15,6 +21,6 @@ release:
1521
git push "git@github.com:reasonml/ReasonNativeProject.git" tag $(version)
1622

1723
clean:
18-
rm -rf _build index.native
24+
rm -rf _build ReasonNativeProject.byte
1925

2026
.PHONY: build release
File renamed without changes.

test-with-version.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ opam switch "${OCAML_VERSION}"
99
eval `opam config env`
1010
opam update
1111
opam pin add -y ReasonNativeProject .
12-
make
13-
./index.native
12+
make byte
13+
./ReasonNativeProject.byte
1414
git diff --exit-code

0 commit comments

Comments
 (0)