Always build for linux

This commit is contained in:
Stephen McQuay 2018-05-10 16:09:36 -07:00
parent 7a7dfb139d
commit de8aa51035
Signed by: sm
GPG Key ID: C383C74875475AC8
1 changed files with 3 additions and 3 deletions

View File

@ -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