Skip to content

Commit 5ba3f5c

Browse files
committed
simplify Makefile and make it mac compatible
1 parent a70b917 commit 5ba3f5c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Makefile

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
BUILD_TS := $(shell date -Iseconds --utc)
1+
BUILD_TS := $(shell date -Iseconds -u)
22
COMMIT_SHA := $(shell git rev-parse HEAD)
33
VERSION := $(shell git describe --abbrev=0 --tags || echo "latest")
4-
OS ?= linux
54

65
export CGO_ENABLED=0
7-
export GOOS=$(OS)
8-
export GO111MODULE=on
96

10-
binary := $(if $(filter-out windows,$(OS)),kafkactl,kafkactl.exe)
7+
binary := kafkactl
118

129
module=$(shell go list -m)
1310
ld_flags := "-X $(module)/cmd.Version=$(VERSION) -X $(module)/cmd.GitCommit=$(COMMIT_SHA) -X $(module)/cmd.BuildTime=$(BUILD_TS)"

0 commit comments

Comments
 (0)