# These variables are used when generating each Makefile.in.
# They hold the Makefile.in until it is ready to be printed.
my $output_vars;
-my $output_all;
my $output_header;
my $output_rules;
my $output_trailer;
$output_deps_greatest_timestamp = 0;
$output_vars = '';
- $output_all = '';
$output_header = '';
$output_rules = '';
$output_trailer = '';
# by changing the order of dependencies to the "all" because
# that breaks when using parallel makes. Instead we handle
# things explicitly.
- $output_all .= ("all: @local_headers"
- . "\n\t\$(MAKE) "
- . (var ('SUBDIRS') ? 'all-recursive' : 'all-am')
- . "\n\n");
+ $output_rules .= ("all: @local_headers"
+ . "\n\t\$(MAKE) "
+ . (var ('SUBDIRS') ? 'all-recursive' : 'all-am')
+ . "\n\n");
}
else
{
- $output_all .= "all: " . (var ('SUBDIRS')
- ? 'all-recursive' : 'all-am') . "\n\n";
+ $output_rules .= "all: " . (var ('SUBDIRS')
+ ? 'all-recursive' : 'all-am') . "\n\n";
}
}
# We make sure that 'all:' is the first target.
my $output =
- "$output_vars$output_all$output_header$output_rules$output_trailer";
+ "$output_vars$output_header$output_rules$output_trailer";
# Decide whether we must update the output file or not.
# We have to update in the following situations.
VPATH = @srcdir@
+## The 'all' target must be the default one, independently from the
+## position it is declared in the output Makefile.
+.DEFAULT_GOAL := all
+
## Emulate VPATH rewrites. This uses only GNU make primitives, which
## allows us to avoid extra forks.
am__vpath_rewrite = \