-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
97 lines (67 loc) · 2.29 KB
/
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
.PHONY: all clean test deploy flat
.PHONY: pre-4 solc-4 pre-5 solc-5 pre-6 solc-6 pre-7 solc-7 solc-8
.PHONY: build-apostle build-common build-land build-market build-token
.PHONY: build-staker build-multicall build-zapper
.PHONY: build-furnace build-raffle build-pvx build-landrs build-proxy
.PHONY: build-governance
.PHONY: build-claims build-arena
SUBDIRS = apostle common-contracts furnace governance land market-contracts token-contracts
DAPP_LIB = lib/
all: pre-4 solc-4 pre-5 solc-5 pre-6 solc-6 pre-7 solc-7 pre-8 solc-8
pre-4:
@nix profile install -f https://github.com/dapphub/dapptools/archive/master.tar.gz solc-static-versions.solc_0_4_24
pre-5:
@nix profile install -f https://github.com/dapphub/dapptools/archive/master.tar.gz solc-static-versions.solc_0_5_16
pre-6:
@nix profile install -f https://github.com/dapphub/dapptools/archive/master.tar.gz solc-static-versions.solc_0_6_7
pre-7:
@nix profile install -f https://github.com/dapphub/dapptools/archive/master.tar.gz solc-static-versions.solc_0_7_6
pre-8:
@nix profile install -f https://github.com/dapphub/dapptools/archive/master.tar.gz solc-static-versions.solc_0_8_17
solc-4: build-apostle build-common build-land build-market build-token
solc-5: build-staker build-multicall build-zapper
solc-6: build-furnace build-raffle build-pvx build-landrs build-proxy
solc-7: build-governance
solc-8: build-claims build-arena
build-proxy:
@source .env && dapp --use solc:0.7.6 build
build-apostle:
@cd lib/apostle && (MAKE)
build-common:
@cd lib/common-contracts && (MAKE)
build-land:
@cd lib/land && (MAKE)
build-market:
@cd lib/market-contracts && (MAKE)
build-token:
@cd lib/token-contracts && (MAKE)
build-furnace:
@cd lib/furnace && (MAKE)
build-governance:
@cd lib/governance && (MAKE)
build-claims:
@cd lib/claims && (MAKE)
build-raffle:
@cd lib/raffle && (MAKE)
build-staker:
@cd lib/staker && (MAKE)
build-multicall:
@cd lib/multicall && (MAKE)
build-zapper:
@cd lib/zapper && (MAKE)
build-pvx:
@cd lib/pvx && (MAKE)
build-landrs:
@cd lib/landrs && (MAKE)
build-arena:
@cd lib/arena && (MAKE)
clean :
source .env && dapp clean
for dir in $(SUBDIRS); do \
$(MAKE) -C $$DAPP_LIB$$dir clean ; \
done
test : dapp test
flat :
@source .env && dapp --use solc:0.7.6 flat
deploy :
make all && bash bin/deploy/deploy-all