From de8aa510353b7184d121ed944e7ea19971ff70da Mon Sep 17 00:00:00 2001 From: "Stephen McQuay (smcquay)" Date: Thu, 10 May 2018 16:09:36 -0700 Subject: [PATCH] Always build for linux --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 76b6434..a021ff5 100644 --- a/Makefile +++ b/Makefile @@ -8,21 +8,21 @@ DIRTY := $(shell git diff-index --quiet HEAD 2> /dev/null > /dev/null || echo bin/hw: $(shell ls *.go) cmd/hw/main.go bin @echo hw - @go build -ldflags \ + @GOOS=linux go build -ldflags \ "-X mcquay.me/hw.Version=$(VERSION)$(V_DIRTY) \ -X mcquay.me/hw.Git=$(GIT)$(DIRTY)" \ -v -o bin/hw ./cmd/hw bin/hwc: $(shell ls *.go ) cmd/hwc/main.go bin @echo hwc - @go build -ldflags \ + @GOOS=linux go build -ldflags \ "-X mcquay.me/hw.Version=$(VERSION)$(V_DIRTY) \ -X mcquay.me/hw.Git=$(GIT)$(DIRTY)" \ -v -o bin/hwc ./cmd/hwc bin/hwl: $(shell ls *.go) cmd/hwl/main.go bin @echo hwl - @go build -ldflags \ + @GOOS=linux go build -ldflags \ "-X mcquay.me/hw.Version=$(VERSION)$(V_DIRTY) \ -X mcquay.me/hw.Git=$(GIT)$(DIRTY)" \ -v -o bin/hwl ./cmd/hwl