Change directory of make files

This commit is contained in:
John David Pressman 2019-05-31 22:32:23 -07:00
parent 533913fd36
commit afa2722456
4 changed files with 28 additions and 0 deletions

8
build-deps.sh Normal file
View File

@ -0,0 +1,8 @@
#!/bin/sh
opam switch create .. ocaml-base-compiler.4.06.1
eval $(opam env)
vendors/opam-repository-tools/rewrite-local-opam-repository.sh
opam repository add localrepo "file://$PWD/vendors/ligo-opam-repository-local-generated/"
opam install -y ocp-indent merlin alcotest-lwt crowbar
opam user-setup install
opam install -y --build-test --deps-only ./src/

3
build.sh Normal file
View File

@ -0,0 +1,3 @@
#! /bin/sh
dune build -p ligo

6
install.sh Normal file
View File

@ -0,0 +1,6 @@
#! /bin/sh
sudo add-apt-repository -y ppa:avsm/ppa
sudo apt-get update
sudo apt-get install -y opam mercurial darcs make m4 gcc libev-dev libgmp-dev pkg-config libhidapi-dev
opam init --bare -a

11
makefile Normal file
View File

@ -0,0 +1,11 @@
install:
./install.sh
build-deps:
./build-deps.sh
build: build-deps
./build.sh
test: build
dune build @ligo-test