forked from gobitfly/eth2-beaconchain-explorer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
39 lines (29 loc) · 1.39 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
GITCOMMIT=`git describe --always`
VERSION=`git describe --always --tags`
GITDATE=`TZ=UTC git show -s --date=iso-strict-local --format=%cd HEAD`
BUILDDATE=`date -u +"%Y-%m-%dT%H:%M:%S%:z"`
PACKAGE=eth2-exporter
LDFLAGS="-X ${PACKAGE}/version.Version=${VERSION} -X ${PACKAGE}/version.BuildDate=${BUILDDATE} -X ${PACKAGE}/version.GitCommit=${GITCOMMIT} -X ${PACKAGE}/version.GitDate=${GITDATE} -s -w"
all: explorer stats frontend-data-updater eth1indexer ethstore-exporter rewards-exporter
lint:
golint ./...
test:
go test -tags=blst_enabled ./...
explorer:
rm -rf bin/
mkdir -p bin/
go run cmd/bundle/main.go
go install github.com/swaggo/swag/cmd/swag@v1.8.3 && swag init --exclude bin,_gitignore,.vscode,.idea --parseDepth 1 -g ./handlers/api.go
go build --ldflags=${LDFLAGS} -o bin/explorer cmd/explorer/main.go
stats:
go build --ldflags=${LDFLAGS} -o bin/statistics cmd/statistics/main.go
frontend-data-updater:
go build --ldflags=${LDFLAGS} -o bin/frontend-data-updater cmd/frontend-data-updater/main.go
ethstore-exporter:
go build --ldflags=${LDFLAGS} -o bin/ethstore-exporter cmd/ethstore-exporter/main.go
rewards-exporter:
go build --ldflags=${LDFLAGS} -o bin/rewards-exporter cmd/rewards-exporter/main.go
eth1indexer:
go build --ldflags=${LDFLAGS} -o bin/eth1indexer cmd/eth1indexer/main.go
machine-migrator:
go build --ldflags=${LDFLAGS} -o bin/machine-migrator cmd/machinemigrator/main.go