Removed if stmnts from define/endef to avoid bug in GNU make R3.80.

This commit is contained in:
Janet B. Anderson
2008-04-29 18:54:39 +00:00
parent 0895228a57
commit 916f1c258f
3 changed files with 7 additions and 18 deletions

View File

@@ -120,15 +120,11 @@ endif
ifneq ($(RELEASE_TOPS),)
define TOP_RULES_template
RULES_TOP:=$$($(1))
ifneq ($$(CONFIG),$$($(1))/configure)
-include $$(strip $$($(1)))/configure/RULES_BUILD
endif
ifneq ($$(wildcard $$($(1))/cfg/RULES*),)
-include $$(wildcard $$($(1))/cfg/RULES*)
endif
-include $$(if $(patsubst $$($(1))/configure,,$$(CONFIG)),nonexistantFilename, \
$$(strip $$($(1)))/configure/RULES_BUILD)
-include $$(wildcard $$($(1))/cfg/RULES*) nonexistantFilename
endef
$(foreach top, $(RELEASE_TOPS), \
$(eval $(call TOP_RULES_template,$(top)) ))
$(foreach top, $(RELEASE_TOPS), $(eval $(call TOP_RULES_template,$(top)) ))
endif
#---------------------------------------------------------------

View File

@@ -66,13 +66,7 @@ ifdef T_A
define FILE_TYPE_template
ifneq ($$(strip $$($(1)S_$$(ARCH_CLASS))),)
$(1)S += $$(subst -nil-,,$$($(1)S_$$(ARCH_CLASS)))
else
ifdef $(1)S_DEFAULT
$(1)S += $$($(1)S_DEFAULT)
endif
endif
$(1)S += $(if $$(strip $$($(1)S_$$(ARCH_CLASS))),$$(subst -nil-,,$$($(1)S_$$(ARCH_CLASS))), $$($(1)S_DEFAULT))
INSTALLS_$(1) = $$($(1)S:%=$$(INSTALL_$(1))/%)
buildInstall : $$(INSTALLS_$(1))
@@ -92,6 +86,7 @@ endef
$(foreach type, $(FILE_TYPE),$(eval $(call FILE_TYPE_template,$(strip $(type)))))
endif
#---------------------------------------------------------------

View File

@@ -30,9 +30,7 @@ RELEASE_TOPS = $(shell $(CONVERTRELEASE) -T $(TOP) releaseTops )
ifneq ($(RELEASE_TOPS),)
define TOP_RULES_template
RULES_TOP:=$$($(1))
ifneq ($$(wildcard $$($(1))/cfg/RULES*),)
-include $$(wildcard $$($(1))/cfg/RULES*)
endif
-include $$(wildcard $$($(1))/cfg/RULES*) nonexistantFilename
endef
$(foreach top, $(RELEASE_TOPS), $(eval $(call TOP_RULES_template,$(top)) ))
endif