diff --git a/Makefile b/Makefile index 2a084df1e8..6d5bd6c1c3 100644 --- a/Makefile +++ b/Makefile @@ -23,22 +23,20 @@ ifeq ($(SKIP_GO_VERSION_CHECK),) include golang.mk endif -ifneq ($(GOPATH),) - GOARCH=$(shell go env GOARCH) - ifeq ($(ARCH),) - ARCH = $(GOARCH) - endif - - ARCH_DIR = arch - ARCH_FILE_SUFFIX = -options.mk - ARCH_FILE = $(ARCH_DIR)/$(ARCH)$(ARCH_FILE_SUFFIX) - ARCH_FILES = $(wildcard arch/*$(ARCH_FILE_SUFFIX)) - ALL_ARCHES = $(patsubst $(ARCH_DIR)/%$(ARCH_FILE_SUFFIX),%,$(ARCH_FILES)) - - # Load architecture-dependent settings - include $(ARCH_FILE) +GOARCH=$(shell go env GOARCH) +ifeq ($(ARCH),) + ARCH = $(GOARCH) endif +ARCH_DIR = arch +ARCH_FILE_SUFFIX = -options.mk +ARCH_FILE = $(ARCH_DIR)/$(ARCH)$(ARCH_FILE_SUFFIX) +ARCH_FILES = $(wildcard arch/*$(ARCH_FILE_SUFFIX)) +ALL_ARCHES = $(patsubst $(ARCH_DIR)/%$(ARCH_FILE_SUFFIX),%,$(ARCH_FILES)) + +# Load architecture-dependent settings +include $(ARCH_FILE) + PROJECT_TYPE = kata PROJECT_NAME = Kata Containers PROJECT_TAG = kata-containers