Warn on multiple inclusion of RULES_BUILD
RULES_BUILD has long had a multi-inclusion guard, but I want to be able to remove it. This commit cleans up the current place where it was happening, and shows a warning if the guard gets triggered, but it doesn't stop builds from working if it happens.
This commit is contained in:
@ -533,5 +533,7 @@ include $(CONFIG)/RULES_EXPAND
|
|||||||
|
|
||||||
include $(CONFIG)/RULES_COMMON
|
include $(CONFIG)/RULES_COMMON
|
||||||
|
|
||||||
|
else
|
||||||
|
$(warning RULES_BUILD included more than once. \
|
||||||
|
Use 'make show-makefiles' to work out why.)
|
||||||
endif # BASE_RULES_BUILD
|
endif # BASE_RULES_BUILD
|
||||||
# EOF RULES_BUILD
|
|
||||||
|
@ -7,9 +7,11 @@
|
|||||||
# in the file LICENSE that is included with this distribution.
|
# in the file LICENSE that is included with this distribution.
|
||||||
#*************************************************************************
|
#*************************************************************************
|
||||||
|
|
||||||
# Include <top>/configure/RULES_BUILD from tops defined in RELEASE* files
|
# Include <top>/configure/RULES_BUILD from tops defined in RELEASE* files,
|
||||||
|
# excluding EPICS_BASE
|
||||||
#
|
#
|
||||||
RELEASE_RULES_BUILDS = $(foreach top, $(RELEASE_TOPS), \
|
RELEASE_RULES_BUILDS = $(foreach top, \
|
||||||
|
$(filter-out EPICS_BASE, $(RELEASE_TOPS)), \
|
||||||
$(wildcard $($(top))/configure/RULES_BUILD))
|
$(wildcard $($(top))/configure/RULES_BUILD))
|
||||||
ifneq ($(RELEASE_RULES_BUILDS),)
|
ifneq ($(RELEASE_RULES_BUILDS),)
|
||||||
include $(RELEASE_RULES_BUILDS)
|
include $(RELEASE_RULES_BUILDS)
|
||||||
|
Reference in New Issue
Block a user