Skip to content
Snippets Groups Projects
Commit d207672b authored by Akinori MUSHA's avatar Akinori MUSHA Committed by Junegunn Choi
Browse files

Parse the output of `go version` to get the value of GOOS (#1260)

parent 851fa382
No related branches found
No related tags found
No related merge requests found
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)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment