mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 742835 - autotargets.mk: handle mkdir dot requests - r=ted
This commit is contained in:
parent
b99a357ef5
commit
e4b8ee53ac
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user