automake-ng
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Automake-NG] [PATCH 12/14] [ng] refactor: prefer '&file_contents' over


From: Stefano Lattarini
Subject: [Automake-NG] [PATCH 12/14] [ng] refactor: prefer '&file_contents' over '&file_contents_internals'
Date: Thu, 21 Jun 2012 12:32:43 +0200

No semantic change intended.

* automake.in (handle_compile): Here.

Signed-off-by: Stefano Lattarini <address@hidden>
---
 automake.in |   10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/automake.in b/automake.in
index e12cd92..4354c25 100644
--- a/automake.in
+++ b/automake.in
@@ -2213,13 +2213,9 @@ sub check_canonical_spelling
 sub handle_compile ()
 {
    return if ! $must_handle_compiled_objects;
-
-   my ($coms, $vars, $rules) =
-      &file_contents_internal (1, "$libdir/am/compile.am",
-                              new Automake::Location,
-                              'STDINC' => ! option 'nostdinc');
-    $output_vars .= $vars;
-    $output_rules .= "$coms$rules";
+   $output_rules .= file_contents ('compile',
+                                   new Automake::Location,
+                                   'STDINC' => ! option 'nostdinc');
 }
 
 # handle_libtool ()
-- 
1.7.9.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]