From a2952b9d069b0d5e8668994abf909cbaee0652d8 Mon Sep 17 00:00:00 2001 From: Benjamin San Souci Date: Sat, 20 May 2017 01:47:04 -0700 Subject: [PATCH] Fix build. --- Makefile | 10 ++++++++-- src/{index.re => ReasonNativeProject.re} | 0 test-with-version.sh | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) rename src/{index.re => ReasonNativeProject.re} (100%) 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