diff --git a/Makefile b/Makefile index 01afb95..731be11 100644 --- a/Makefile +++ b/Makefile @@ -2,8 +2,14 @@ # ocamlbuild. # Docs: https://github.com/ocaml/ocamlbuild/blob/master/manual/manual.adoc +all: byte library + +byte: + rebuild -use-ocamlfind src/ReasonNativeProject.byte + build: - rebuild -use-ocamlfind src/index.native + rebuild -use-ocamlfind src/ReasonNativeProject.cma + rebuild -use-ocamlfind src/ReasonNativeProject.cmxa # some boilerplate to publish a new version to GitHub release: @@ -15,6 +21,6 @@ release: git push "git@github.com:reasonml/ReasonNativeProject.git" tag $(version) clean: - rm -rf _build index.native + rm -rf _build ReasonNativeProject.byte .PHONY: build release diff --git a/src/index.re b/src/ReasonNativeProject.re similarity index 100% rename from src/index.re rename to src/ReasonNativeProject.re diff --git a/test-with-version.sh b/test-with-version.sh index 9cdba16..6a5c966 100755 --- a/test-with-version.sh +++ b/test-with-version.sh @@ -9,6 +9,6 @@ opam switch "${OCAML_VERSION}" eval `opam config env` opam update opam pin add -y ReasonNativeProject . -make -./index.native +make byte +./ReasonNativeProject.byte git diff --exit-code