* automake.in (handle_compile): To ensure the compiled objects are
removed, simply merge the contents of '%compile_clean_files' into
'%clean_files' here, instead of ...
* lib/am/compile.am (am__mostlyclean_files): ... appending them to
this variable here. While we are at it, remove a stray declaration
of the already-deleted target 'mostlyclean-compile' as ".PHONY".
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
{
return if ! $must_handle_compiled_objects;
- my @mostly_cleaned = sort keys %compile_clean_files;
+ %mostly_cleaned = (%compile_clean_files, %mostly_cleaned);
my ($coms, $vars, $rules) =
&file_contents_internal (1, "$libdir/am/compile.am",
new Automake::Location,
- 'STDINC' => ! option 'nostdinc',
- 'MOSTLY-CLEANED' => "@mostly_cleaned");
+ 'STDINC' => ! option 'nostdinc');
$output_vars .= $vars;
$output_rules .= "$coms$rules";
}
else !%?STDINC%
AM_DEFAULT_INCLUDES =
endif !%?STDINC%
-
-am__mostlyclean_files += %MOSTLY-CLEANED%
-
-.PHONY: mostlyclean-compile