From fe21b34ae3eda52a317cfaf922051ac74036a6a6 Mon Sep 17 00:00:00 2001 From: zze <632404164@qq.com> Date: Tue, 12 Apr 2022 17:35:47 +0800 Subject: [PATCH] pref: build for linux --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 0a7b326a8..d54e3758d 100644 --- a/Makefile +++ b/Makefile @@ -79,6 +79,13 @@ build: $(BINDIR)/$(BINNAME) $(BINDIR)/$(BINNAME): $(SRC) GO111MODULE=on CGO_ENABLED=0 go build $(GOFLAGS) -trimpath -tags '$(TAGS)' -ldflags '$(LDFLAGS)' -o '$(BINDIR)'/$(BINNAME) ./cmd/helm + +.PHONY: build-linux-amd64 +build-linux-amd64: $(BINDIR)/$(BINNAME) + +$(BINDIR)/$(BINNAME): $(SRC) + GO111MODULE=on CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build $(GOFLAGS) -trimpath -tags '$(TAGS)' -ldflags '$(LDFLAGS)' -o '$(BINDIR)'/$(BINNAME) ./cmd/helm + # ------------------------------------------------------------------------------ # install