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

makefile: more flexible

parent 186cf5fe
SHELL := /bin/bash
pkg := bindings
contracts-dir := ../packages/contracts-bedrock
all: version mkdir bindings
......@@ -9,8 +10,7 @@ version:
abigen --version
compile:
cd ../packages/contracts-bedrock/ && \
yarn clean && \
cd $(contracts-dir) && \
yarn build
bindings: compile
......@@ -24,6 +24,10 @@ bindings: compile
mkdir:
mkdir -p $(pkg)
clean-contracts:
cd $(contracts-dir) && \
yarn clean
clean:
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