automake-patches
[Top][All Lists]
Advanced

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

[PATCH 4/8] tags: look at $(am__tagged_files) to decide whether to activ


From: Stefano Lattarini
Subject: [PATCH 4/8] tags: look at $(am__tagged_files) to decide whether to activate
Date: Fri, 8 Jun 2012 10:20:26 +0200

This is just a preparatory refactoring in view of future changes.

* automake.in (handle_tags): To decide whether to include the tags rules,
rely on whether the automake-defined variable $(SOURCES) is non-empty,
rather than on the fact that '&saw_sources(1)' returns true.

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

diff --git a/automake.in b/automake.in
index cd3d7bc..d5091ec 100644
--- a/automake.in
+++ b/automake.in
@@ -3663,9 +3663,8 @@ sub handle_tags
        &depend ('.MAKE', 'cscopelist-recursive');
     }
 
-    if (&saw_sources_p (1)
-       || var ('ETAGS_ARGS')
-       || @tag_deps)
+    if (rvar('am__tagged_files')->value_as_list_recursive
+          || var ('ETAGS_ARGS') || @tag_deps)
     {
        my @config;
        foreach my $spec (@config_headers)
-- 
1.7.9.5




reply via email to

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