mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
defs.mk, platform.mk: Include pre-local.mk and cache.mk from platform.mk
platform.mk is sometimes included before defs.mk, e.g. from $(TOPDIR)/make/proj.mk, then these definitions are necessary Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
ce2c6b0190
commit
59da607e12
2 changed files with 13 additions and 13 deletions
13
make/defs.mk
13
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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue