diff --git a/make/defs.mk b/make/defs.mk index 344eba39..6a649509 100644 --- a/make/defs.mk +++ b/make/defs.mk @@ -7,19 +7,6 @@ JW_BUILD_DEF_MK_INCLUDED = true MAKEFLAGS += -r -# "-include" tries search path, we don't want that -define try_include - ifneq ($$(wildcard $(1)),) - include $(1) - endif -endef - -$(eval $(call try_include,$(MODDIR)/make/.cache.mk)) -$(eval $(call try_include,$(TOPDIR)/make/.cache.mk)) -$(eval $(call try_include,$(MODDIR)/make/pre-local.mk)) -$(eval $(call try_include,$(TOPDIR)/make/pre-local.mk)) -$(eval $(call try_include,pre-local.mk)) - include $(MODDIR)/make/projects.mk ifeq ($(MAKE_BENCHMARK),true) diff --git a/make/platform.mk b/make/platform.mk index 6cf45915..1d339de9 100644 --- a/make/platform.mk +++ b/make/platform.mk @@ -3,6 +3,19 @@ ifndef PLATFORM_MK_INCLUDED PLATFORM_MK_INCLUDED = true +# "-include" tries search path, we don't want that +define try_include + ifneq ($$(wildcard $(1)),) + include $(1) + endif +endef + +$(eval $(call try_include,$(MODDIR)/make/.cache.mk)) +$(eval $(call try_include,$(TOPDIR)/make/.cache.mk)) +$(eval $(call try_include,$(MODDIR)/make/pre-local.mk)) +$(eval $(call try_include,$(TOPDIR)/make/pre-local.mk)) +$(eval $(call try_include,pre-local.mk)) + ifndef TARGET ifneq ($(subst mingw,,$(CWD)),$(CWD)) TARGET := mingw