-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (32 loc) · 1.23 KB
/
Makefile
File metadata and controls
47 lines (32 loc) · 1.23 KB
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
INDEXER_BINARY := indexer
KV_MIGRATE_BINARY := kv-migrate
WALLET_KV_LOAD_BINARY := wallet-kv-load
.PHONY: build build-all clean run stop run-ethereum-mainnet run-tron-mainnet run-bitcoin-testnet run-bitcoin-mainnet wallet-kv-load
build:
go build -o $(INDEXER_BINARY) ./cmd/indexer
build-kv-migrate:
go build -o $(KV_MIGRATE_BINARY) ./cmd/kv-migrate
build-wallet-kv-load:
go build -o $(WALLET_KV_LOAD_BINARY) ./cmd/wallet-kv-load
build-blockreliability:
go build -o block-reliability ./cmd/devtools/blockreliability
build-all: build build-kv-migrate build-wallet-kv-load build-blockreliability
clean:
rm -f $(INDEXER_BINARY) $(KV_MIGRATE_BINARY) $(WALLET_KV_LOAD_BINARY) block-reliability
run:
./$(INDEXER_BINARY) index --catchup
run-ethereum-mainnet: build
./$(INDEXER_BINARY) index --chain=ethereum_mainnet --catchup
run-tron-mainnet: build
./$(INDEXER_BINARY) index --chain=tron_mainnet --catchup
run-bitcoin-testnet: build
./$(INDEXER_BINARY) index --chain=bitcoin_testnet --catchup
run-bitcoin-mainnet: build
./$(INDEXER_BINARY) index --chain=bitcoin_mainnet --catchup
wallet-kv-load: build-wallet-kv-load
./$(WALLET_KV_LOAD_BINARY)
stop:
@echo "Killing indexer..."
- pkill -f "./$(INDEXER_BINARY)" || true
fmt:
go fmt ./...