Skip to content

Commit

Permalink
fix makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Pantani committed Oct 18, 2024
1 parent 122b1c4 commit 73bfddb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ build_tags_comma_sep := $(subst $(whitespace),$(comma),$(build_tags))

# process linker flags

ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=modulesd \
-X github.com/cosmos/cosmos-sdk/version.AppName=modulesd \
ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=networkd \
-X github.com/cosmos/cosmos-sdk/version.AppName=networkd \
-X github.com/cosmos/cosmos-sdk/version.Version=$(VERSION) \
-X github.com/cosmos/cosmos-sdk/version.Commit=$(COMMIT) \
-X "github.com/cosmos/cosmos-sdk/version.BuildTags=$(build_tags_comma_sep)" \
Expand Down Expand Up @@ -115,22 +115,22 @@ help: Makefile

build: go.sum
ifeq ($(OS),Windows_NT)
go build $(BUILD_FLAGS) -o build/modulesd.exe ./cmd/modulesd
go build $(BUILD_FLAGS) -o build/networkd.exe ./cmd/networkd
else
go build $(BUILD_FLAGS) -o build/modulesd ./cmd/modulesd
go build $(BUILD_FLAGS) -o build/networkd ./cmd/networkd
endif

build-linux: go.sum
LEDGER_ENABLED=false GOOS=linux GOARCH=amd64 $(MAKE) build

install: go.sum
go install $(BUILD_FLAGS) ./cmd/modulesd
go install $(BUILD_FLAGS) ./cmd/networkd

build-reproducible: go.sum
$(DOCKER) rm latest-build || true
$(DOCKER) run --volume=$(CURDIR):/sources:ro \
--env TARGET_PLATFORMS='linux/amd64 darwin/amd64 linux/arm64' \
--env APP=modulesd \
--env APP=networkd \
--env VERSION=$(VERSION) \
--env COMMIT=$(COMMIT) \
--name latest-build cosmossdk/rbuilder:latest
Expand Down

0 comments on commit 73bfddb

Please sign in to comment.