Makefile: no need to calculate GOOS

Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
Stephen J Day 2018-01-04 15:39:53 -08:00
parent ab7150f0ff
commit 1c8911b1f1
No known key found for this signature in database
GPG Key ID: 67B3DED84EDC823F
2 changed files with 1 additions and 19 deletions

View File

@ -50,10 +50,8 @@ TESTFLAGS_RACE=
GO_GCFLAGS=
GO_BUILD_FLAGS=
#Detect the target os
include Makefile.OS
#include platform specific makefile
include Makefile.$(target_os)
-include Makefile.$(GOOS)
# Add the "incremental" build option `-i` (installs the packages that are
# dependencies of the target) to speed up future builds. Only for native builds,

View File

@ -1,16 +0,0 @@
#Detect the OS, and return installos value same as GOOS
target_os =
ifeq ($(OS),Windows_NT)
target_os = windows
else
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
target_os = linux
endif
ifeq ($(UNAME_S),Darwin)
target_os = darwin
endif
ifeq ($(UNAME_S),FreeBSD)
target_os = freebsd
endif
endif