-
Notifications
You must be signed in to change notification settings - Fork 23
/
Makefile
30 lines (21 loc) · 708 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
# dora
BUILDTIME := $(shell date -u '+%Y-%m-%dT%H:%M:%SZ')
VERSION := $(shell git rev-parse --short HEAD)
GOLDFLAGS += -X 'github.com/ethpandaops/dora/utils.BuildVersion="$(VERSION)"'
GOLDFLAGS += -X 'github.com/ethpandaops/dora/utils.Buildtime="$(BUILDTIME)"'
GOLDFLAGS += -X 'github.com/ethpandaops/dora/utils.BuildRelease="$(RELEASE)"'
.PHONY: all test clean
all: test build
test:
go test ./...
build:
@echo version: $(VERSION)
env CGO_ENABLED=1 go build -v -o bin/ -ldflags="-s -w $(GOLDFLAGS)" ./cmd/*
clean:
rm -f bin/*
devnet:
.hack/devnet/run.sh
devnet-run: devnet
go run cmd/dora-explorer/main.go --config .hack/devnet/generated-dora-config.yaml
devnet-clean:
.hack/devnet/cleanup.sh