mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-25 14:17:40 +00:00
Parse the output of go version
to get the value of GOOS (#1260)
This commit is contained in:
parent
851fa38251
commit
d207672bd5
9
Makefile
9
Makefile
@ -1,12 +1,5 @@
|
|||||||
ifndef GOOS
|
ifndef GOOS
|
||||||
UNAME_S := $(shell uname -s)
|
GOOS := $(word 1, $(subst /, " ", $(word 4, $(shell go version))))
|
||||||
ifeq ($(UNAME_S),Darwin)
|
|
||||||
GOOS := darwin
|
|
||||||
else ifeq ($(UNAME_S),Linux)
|
|
||||||
GOOS := linux
|
|
||||||
else
|
|
||||||
$(error "$$GOOS is not defined.")
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
MAKEFILE := $(realpath $(lastword $(MAKEFILE_LIST)))
|
MAKEFILE := $(realpath $(lastword $(MAKEFILE_LIST)))
|
||||||
|
Loading…
Reference in New Issue
Block a user