Skip to content

Commit d550129

Browse files
committed
edit makefile
1 parent 91bfd9d commit d550129

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

Makefile

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
VERSION := $(shell git describe --tags --always)
22
CONFIG_URL := https://cfg.rpchub.io/agg/op-default.json
33

4-
GOLDFLAGS += -X github.com/BlockPILabs/aggregator/version.Version=$(VERSION)
5-
GOLDFLAGS += -X github.com/BlockPILabs/aggregator/config.DefaultConfigUrl=$(CONFIG_URL)
4+
GOLDFLAGS := -X github.com/BlockPILabs/aggregator/version.Version=$(VERSION)
5+
GO_OPLDFLAGS := -X github.com/BlockPILabs/aggregator/config.DefaultConfigUrl=$(CONFIG_URL)
66
GOFLAGS = -ldflags "$(GOLDFLAGS)"
77

8+
89
all: build
910

1011
.PHONY: build
1112
build:
12-
go build $(GOFLAGS) -o ./build/ ./cmd/aggregator
13+
go build -ldflags "$(GOLDFLAGS)" -o ./build/ ./cmd/aggregator
14+
build-op:
15+
go build -ldflags "$(GOLDFLAGS) $(GO_OPLDFLAGS)" -o ./build/ ./cmd/aggregator
16+
#build-windows:
17+
# CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build $(GOFLAGS) -o ./build/ ./cmd/aggregator
18+
#build-mac:
19+
# CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build $(GOFLAGS) -o ./build/ ./cmd/aggregator
1320
clean:
1421
rm -rf build/*

config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
var (
1919
logger = log.Module("config")
2020
locker = sync.Mutex{}
21-
DefaultConfigUrl = ""
21+
DefaultConfigUrl = "https://cfg.rpchub.io/agg/default.json"
2222
defaultPhishingDb = "https://cfg.rpchub.io/agg/scam-addresses.json"
2323

2424
_Config = &Config{

0 commit comments

Comments
 (0)