forked from destrys/ethereum-multisig
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
55 lines (40 loc) · 840 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#
# == Paths & Directories ==
#
ROOT_DIR := $(shell pwd)
VENV_DIR := .virtualenv
#
# == Configuration ==
#
TESTRPC_PORT ?= 8545
DAPP_PORT ?= 8435
#
# == Commands ==
#
MKDIR := mkdir -p
LN := ln
FIND := find
TRUFFLE := $(NODE_DIR)/truffle/build/cli.bundled.js
PIP := $(VENV_DIR)/bin/pip
PYTHON3 := $(shell command -v python3 2> /dev/null)
#
# == Top-Level Targets ==
#
contract: build/contracts/MultiSig2of3.json
testrpc:
$(TESTRPC) --port $(TESTRPC_PORT)
freeze:
$(PIP) freeze > requirements.frozen.txt
#
# == Contract ==
#
build/contracts/MultiSig2of3.json: contracts/MultiSig2of3.sol
$(TRUFFLE) compile
#
# == Dependencies ==
#
$(VENV_DIR):
$(PYTHON3) -m venv $(VENV_DIR)
python-dependencies: $(VENV_DIR)
$(PYTHON3) -m ensurepip --upgrade
$(PIP) install -r requirements.frozen.txt