mirror of
https://github.com/kovetskiy/mark.git
synced 2025-04-24 05:42:40 +08:00
Use default GOOS and allow to specify GOOS on cmd-line
This commit is contained in:
parent
3cd9504a04
commit
7f310205ae
2
Makefile
2
Makefile
@ -19,7 +19,7 @@ get:
|
|||||||
|
|
||||||
build:
|
build:
|
||||||
@echo :: building go binary $(VERSION)
|
@echo :: building go binary $(VERSION)
|
||||||
CGO_ENABLED=0 GOOS=linux go build \
|
CGO_ENABLED=0 go build \
|
||||||
-ldflags "-X main.version=$(VERSION)" \
|
-ldflags "-X main.version=$(VERSION)" \
|
||||||
-gcflags "-trimpath $(GOPATH)/src"
|
-gcflags "-trimpath $(GOPATH)/src"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user