summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-01-20 22:15:01 +0100
committerChristian Poessinger <christian@poessinger.com>2019-01-20 22:15:01 +0100
commit0f121c12a842002961d0be4dd4287816d5c89be5 (patch)
tree2b60f6a75c9fd5e22d7aab48842995015d943521
parentaf9ffaaa4a62c9266890c592e3b2f2ce5fb28a3e (diff)
downloadvyconf-0f121c12a842002961d0be4dd4287816d5c89be5.tar.gz
vyconf-0f121c12a842002961d0be4dd4287816d5c89be5.zip
README: update build instructions
-rw-r--r--README.md18
1 files changed, 12 insertions, 6 deletions
diff --git a/README.md b/README.md
index 025cad6..beb4f6f 100644
--- a/README.md
+++ b/README.md
@@ -83,24 +83,30 @@ If you are new to OCaml, you need to install [opam](http://opam.ocaml.org/)
first. Then install the correct version of the compiler, the build tools, and
the build dependencies:
-```
-opam switch 4.07.0
-opam install oasis
-opam install fileutils lwt lwt_ppx lwt_log ocplib-endian ounit pcre ppx_deriving_yojson sha toml xml-light batteries
+```bash
+sh <(curl -sL https://raw.githubusercontent.com/ocaml/opam/2.0.2/shell/install.sh)
+opam init --disable-sandboxing
+eval $(opam env)
+opam switch create 4.07.0
+eval $(opam env)
+opam install oasis -y
+eval $(opam env)
+opam install fileutils lwt lwt_ppx lwt_log ocplib-endian ounit pcre ppx_deriving_yojson sha toml xml-light batteries ocaml-protoc ctypes-foreign -y
```
To build the project and run the unit tests, do this:
-```
+```bash
./build-setup.sh
./configure --enable-tests
make
make test
+make install
```
If the project gets in a weird state, and isn't building correctly, you can clean it up with
-```
+```bash
ocaml setup.ml -distclean
```