Skip to content

Commit

Permalink
updated makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
faneaatiku committed Dec 30, 2021
1 parent 9264b21 commit f53c0d0
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,28 +45,30 @@ install: check-network go.sum
go install -mod=readonly $(BUILD_FLAGS) $(BUILD_TAGS) ./cmd/bzedgev5d

build: check-network go.sum
go build -mod=readonly $(BUILD_FLAGS) $(BUILD_TAGS) -o $(BUILDDIR)/bzedgev5d ./cmd/bzedgev5d

buildwindows: check-network go.sum
go build -buildmode=exe -mod=readonly $(BUILD_FLAGS) $(BUILD_TAGS) -o $(BUILDDIR)/bzedgev5d.exe ./cmd/bzedgev5d
go build -mod=readonly $(BUILD_FLAGS) $(BUILD_TAGS) -o $(BUILDDIR)/$(GOOS)/bzedgev5d ./cmd/bzedgev5d

build-win64: check-network go.sum
go build -buildmode=exe -mod=readonly $(BUILD_FLAGS) $(BUILD_TAGS) -o $(BUILDDIR)/win64/bzedgev5d.exe ./cmd/bzedgev5d

.PHONY: build

build-linux: go.sum
build-linux: check-network go.sum
ifeq ($(OS), Linux)
GOOS=linux GOARCH=amd64 $(MAKE) build
else
LEDGER_ENABLED=false GOOS=linux GOARCH=amd64 $(MAKE) build
endif

build-mac: go.sum
build-mac: check-network go.sum
ifeq ($(OS), Darwin)
GOOS=darwin GOARCH=amd64 $(MAKE) build
else
LEDGER_ENABLED=false GOOS=darwin GOARCH=amd64 $(MAKE) build
endif

build-all: all build-win64 build-mac build-linux


go.sum: go.mod
@echo "--> Ensure dependencies have not been modified"
GO111MODULE=on go mod verify
Expand Down

0 comments on commit f53c0d0

Please sign in to comment.