Skip to content

Commit

Permalink
update makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
nkanaev committed May 14, 2024
1 parent daffd72 commit b13cd85
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
VERSION=2.4
GITHASH=$(shell git rev-parse --short=8 HEAD)

CGO_ENABLED=1
GO_LDFLAGS = -s -w -X 'main.Version=$(VERSION)' -X 'main.GitHash=$(GITHASH)'

GO_LDFLAGS = -s -w
GO_LDFLAGS := $(GO_LDFLAGS) -X 'main.Version=$(VERSION)' -X 'main.GitHash=$(GITHASH)'

export GOARCH ?= amd64
export GOARCH ?= amd64
export CGO_ENABLED = 1

build_default:
mkdir -p _output
Expand Down

0 comments on commit b13cd85

Please sign in to comment.