summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/automake.in12
1 files changed, 4 insertions, 8 deletions
diff --git a/bin/automake.in b/bin/automake.in
index afd296afa..f249064d5 100644
--- a/bin/automake.in
+++ b/bin/automake.in
@@ -7893,14 +7893,6 @@ sub require_build_directory
$directory_map{$directory} = $dirstamp;
$directory_map{$cdir} = $dirstamp;
- # Generate the pattern rule only once.
- if (! vardef ('am__dirstamp', TRUE))
- {
- $output_rules .= ("%/\$(am__dirstamp):\n"
- . "\t\@\$(MKDIR_P) \$(\@D)\n"
- . "\t\@: >>\$\@\n");
- }
-
# Set a variable for the dirstamp basename.
define_pretty_variable ('am__dirstamp', TRUE, INTERNAL,
'$(am__leading_dot)dirstamp');
@@ -7908,6 +7900,10 @@ sub require_build_directory
# Directory must be removed by 'make distclean'.
$clean_files{$dirstamp} = DIST_CLEAN;
+ $output_rules .= ("$dirstamp:\n"
+ . "\t\@\$(MKDIR_P) $directory\n"
+ . "\t\@: >>$dirstamp\n");
+
return $dirstamp;
}