Commit 70edad5e authored by Mark Tyneway's avatar Mark Tyneway

makefile: more flexible

parent 186cf5fe
SHELL := /bin/bash SHELL := /bin/bash
pkg := bindings pkg := bindings
contracts-dir := ../packages/contracts-bedrock
all: version mkdir bindings all: version mkdir bindings
...@@ -9,8 +10,7 @@ version: ...@@ -9,8 +10,7 @@ version:
abigen --version abigen --version
compile: compile:
cd ../packages/contracts-bedrock/ && \ cd $(contracts-dir) && \
yarn clean && \
yarn build yarn build
bindings: compile bindings: compile
...@@ -24,6 +24,10 @@ bindings: compile ...@@ -24,6 +24,10 @@ bindings: compile
mkdir: mkdir:
mkdir -p $(pkg) mkdir -p $(pkg)
clean-contracts:
cd $(contracts-dir) && \
yarn clean
clean: clean:
rm -rf $(pkg) rm -rf $(pkg)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment