Skip to content

Commit

Permalink
Fix build.
Browse files Browse the repository at this point in the history
  • Loading branch information
bsansouci committed May 20, 2017
1 parent 28ddebe commit a2952b9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -15,6 +21,6 @@ release:
git push "[email protected]:reasonml/ReasonNativeProject.git" tag $(version)

clean:
rm -rf _build index.native
rm -rf _build ReasonNativeProject.byte

.PHONY: build release
File renamed without changes.
4 changes: 2 additions & 2 deletions test-with-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a2952b9

Please sign in to comment.