Always build for linux
This commit is contained in:
parent
7a7dfb139d
commit
de8aa51035
6
Makefile
6
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
|
bin/hw: $(shell ls *.go) cmd/hw/main.go bin
|
||||||
@echo hw
|
@echo hw
|
||||||
@go build -ldflags \
|
@GOOS=linux go build -ldflags \
|
||||||
"-X mcquay.me/hw.Version=$(VERSION)$(V_DIRTY) \
|
"-X mcquay.me/hw.Version=$(VERSION)$(V_DIRTY) \
|
||||||
-X mcquay.me/hw.Git=$(GIT)$(DIRTY)" \
|
-X mcquay.me/hw.Git=$(GIT)$(DIRTY)" \
|
||||||
-v -o bin/hw ./cmd/hw
|
-v -o bin/hw ./cmd/hw
|
||||||
|
|
||||||
bin/hwc: $(shell ls *.go ) cmd/hwc/main.go bin
|
bin/hwc: $(shell ls *.go ) cmd/hwc/main.go bin
|
||||||
@echo hwc
|
@echo hwc
|
||||||
@go build -ldflags \
|
@GOOS=linux go build -ldflags \
|
||||||
"-X mcquay.me/hw.Version=$(VERSION)$(V_DIRTY) \
|
"-X mcquay.me/hw.Version=$(VERSION)$(V_DIRTY) \
|
||||||
-X mcquay.me/hw.Git=$(GIT)$(DIRTY)" \
|
-X mcquay.me/hw.Git=$(GIT)$(DIRTY)" \
|
||||||
-v -o bin/hwc ./cmd/hwc
|
-v -o bin/hwc ./cmd/hwc
|
||||||
|
|
||||||
bin/hwl: $(shell ls *.go) cmd/hwl/main.go bin
|
bin/hwl: $(shell ls *.go) cmd/hwl/main.go bin
|
||||||
@echo hwl
|
@echo hwl
|
||||||
@go build -ldflags \
|
@GOOS=linux go build -ldflags \
|
||||||
"-X mcquay.me/hw.Version=$(VERSION)$(V_DIRTY) \
|
"-X mcquay.me/hw.Version=$(VERSION)$(V_DIRTY) \
|
||||||
-X mcquay.me/hw.Git=$(GIT)$(DIRTY)" \
|
-X mcquay.me/hw.Git=$(GIT)$(DIRTY)" \
|
||||||
-v -o bin/hwl ./cmd/hwl
|
-v -o bin/hwl ./cmd/hwl
|
||||||
|
Loading…
Reference in New Issue
Block a user