Merge pull request #1964 from stevvooe/remove-silly-makefile-stuff
Makefile: no need to calculate GOOS
This commit is contained in:
commit
8b6909f22f
4
Makefile
4
Makefile
@ -50,10 +50,8 @@ TESTFLAGS_RACE=
|
|||||||
GO_GCFLAGS=
|
GO_GCFLAGS=
|
||||||
GO_BUILD_FLAGS=
|
GO_BUILD_FLAGS=
|
||||||
|
|
||||||
#Detect the target os
|
|
||||||
include Makefile.OS
|
|
||||||
#include platform specific makefile
|
#include platform specific makefile
|
||||||
include Makefile.$(target_os)
|
-include Makefile.$(GOOS)
|
||||||
|
|
||||||
# Add the "incremental" build option `-i` (installs the packages that are
|
# Add the "incremental" build option `-i` (installs the packages that are
|
||||||
# dependencies of the target) to speed up future builds. Only for native builds,
|
# dependencies of the target) to speed up future builds. Only for native builds,
|
||||||
|
16
Makefile.OS
16
Makefile.OS
@ -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
|
|
Loading…
Reference in New Issue
Block a user