mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-21 20:35:11 +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
|
||||
UNAME_S := $(shell uname -s)
|
||||
ifeq ($(UNAME_S),Darwin)
|
||||
GOOS := darwin
|
||||
else ifeq ($(UNAME_S),Linux)
|
||||
GOOS := linux
|
||||
else
|
||||
$(error "$$GOOS is not defined.")
|
||||
endif
|
||||
GOOS := $(word 1, $(subst /, " ", $(word 4, $(shell go version))))
|
||||
endif
|
||||
|
||||
MAKEFILE := $(realpath $(lastword $(MAKEFILE_LIST)))
|
||||
|
Loading…
Reference in New Issue
Block a user