]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
[ng] refactoring: no "cleaning" rules in compile.am
authorStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 21 Jun 2012 00:10:54 +0000 (02:10 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 21 Jun 2012 19:16:39 +0000 (21:16 +0200)
* 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>
automake.in
lib/am/compile.am

index 77f6d134f32405f179fef08ef3048b1333b3d17b..42e6de5f0ed9d4650d62dfe403d43d6c95131508 100644 (file)
@@ -2221,12 +2221,11 @@ sub handle_compile ()
 {
    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";
 }
index 9447bcc5940a8d5bbac95ecd895a14433fe03d8d..ceb5c9d38d94dccaea821142a00cc9fd74e19397 100644 (file)
@@ -26,7 +26,3 @@ AM_DEFAULT_INCLUDES = \
 else !%?STDINC%
 AM_DEFAULT_INCLUDES =
 endif !%?STDINC%
-
-am__mostlyclean_files += %MOSTLY-CLEANED%
-
-.PHONY: mostlyclean-compile