forked from 0xakk0r0kamui/constant-chain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (34 loc) · 1.04 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
# This Makefile is meant to be used by people that do not usually work
# with Go source code. If you know what GOPATH is then you probably
# don't need to bother with make.
GOBUILD = env GO111MODULE=on go build
DATADIR = ./data
MAINNET = mainnet
TESTNET = testnet
VERSION_1 = 1
VERSION_2 = 2
LOCAL = local
BUILD_FILE_NAME = incognito
build:
$(GOBUILD) -o $(BUILD_FILE_NAME) -v
local:
INCOGNITO_NETWORK_KEY=$(LOCAL) ./$(BUILD_FILE_NAME)
testnet-1:
INCOGNITO_NETWORK_KEY=$(TESTNET) INCOGNITO_NETWORK_VERSION_KEY=$(VERSION_1) ./$(BUILD_FILE_NAME)
testnet-2:
INCOGNITO_NETWORK_KEY=$(TESTNET) INCOGNITO_NETWORK_VERSION_KEY=$(VERSION_2) ./$(BUILD_FILE_NAME)
mainnet:
INCOGNITO_NETWORK_KEY=$(MAINNET) ./$(BUILD_FILE_NAME)
prune-mainnet:
INCOGNITO_NETWORK_KEY=$(MAINNET) ./$(BUILD_FILE_NAME) --stateprune
prune-local:
INCOGNITO_NETWORK_KEY=$(LOCAL) ./$(BUILD_FILE_NAME) --stateprune
test:
make build
go test ./.../pdexv3
go test ./.../pdex
go test ./.../bridgeagg
clean:
env GO111MODULE=on go clean -cache
rm -rf $(DATADIR)
rm -rf $(BUILD_FILE_NAME)