From acc4f20b602770fe121b3086eef7223720e89ede Mon Sep 17 00:00:00 2001 From: Joey Armstrong Date: Wed, 30 May 2012 10:27:09 -0400 Subject: [PATCH] bug 758782: mkdir_deps dependencies should be .PRECIOUS --- config/makefiles/autotargets.mk | 4 ++++ js/src/config/makefiles/autotargets.mk | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/config/makefiles/autotargets.mk b/config/makefiles/autotargets.mk index 2db24a9c119..595729e6558 100644 --- a/config/makefiles/autotargets.mk +++ b/config/makefiles/autotargets.mk @@ -18,6 +18,10 @@ ifndef INCLUDED_AUTOTARGETS_MK #{ MKDIR ?= mkdir -p TOUCH ?= touch +# Deps will be considered intermediate when used as a pre-requisite for +# wildcard targets. Inhibit their removal, mkdir -p is a standalone op. +.PRECIOUS: %/.mkdir.done + ########################################################################### # Threadsafe directory creation # GENERATED_DIRS - Automated creation of these directories. diff --git a/js/src/config/makefiles/autotargets.mk b/js/src/config/makefiles/autotargets.mk index 2db24a9c119..595729e6558 100644 --- a/js/src/config/makefiles/autotargets.mk +++ b/js/src/config/makefiles/autotargets.mk @@ -18,6 +18,10 @@ ifndef INCLUDED_AUTOTARGETS_MK #{ MKDIR ?= mkdir -p TOUCH ?= touch +# Deps will be considered intermediate when used as a pre-requisite for +# wildcard targets. Inhibit their removal, mkdir -p is a standalone op. +.PRECIOUS: %/.mkdir.done + ########################################################################### # Threadsafe directory creation # GENERATED_DIRS - Automated creation of these directories.