Bug 742835 - autotargets.mk: handle mkdir dot requests - r=ted

This commit is contained in:
Joey Armstrong 2012-04-13 14:44:24 -04:00
parent b99a357ef5
commit e4b8ee53ac
2 changed files with 26 additions and 2 deletions

View File

@ -26,10 +26,22 @@ ifneq (,$(GENERATED_DIRS))
GARBAGE_DIRS +=$(tmpauto)
endif
%/.mkdir.done:
## Only define rules once
ifndef INCLUDED_AUTOTARGETS_MK
%/.mkdir.done: # mkdir -p -p => mkdir -p
$(subst $(SPACE)-p,$(null),$(MKDIR)) -p $(dir $@)
@$(TOUCH) $@
# A handful of makefiles are attempting "mkdir dot". Likely not intended
# or stale logic so add a stub target to handle the request and warn for now.
.mkdir.done:
@echo "WARNING: $(MKDIR) -dot- requested by $(MAKE) -C $(CURDIR) $(MAKECMDGOALS)"
@$(TOUCH) $@
INCLUDED_AUTOTARGETS_MK = 1
endif
#################################################################
# One ring/dep to rule them all:
# config/rules.mk::all target is available by default

View File

@ -26,10 +26,22 @@ ifneq (,$(GENERATED_DIRS))
GARBAGE_DIRS +=$(tmpauto)
endif
%/.mkdir.done:
## Only define rules once
ifndef INCLUDED_AUTOTARGETS_MK
%/.mkdir.done: # mkdir -p -p => mkdir -p
$(subst $(SPACE)-p,$(null),$(MKDIR)) -p $(dir $@)
@$(TOUCH) $@
# A handful of makefiles are attempting "mkdir dot". Likely not intended
# or stale logic so add a stub target to handle the request and warn for now.
.mkdir.done:
@echo "WARNING: $(MKDIR) -dot- requested by $(MAKE) -C $(CURDIR) $(MAKECMDGOALS)"
@$(TOUCH) $@
INCLUDED_AUTOTARGETS_MK = 1
endif
#################################################################
# One ring/dep to rule them all:
# config/rules.mk::all target is available by default