]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tags: look at $(am__tagged_files) to decide whether to activate
authorStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 7 Jun 2012 17:12:11 +0000 (19:12 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 8 Jun 2012 20:01:53 +0000 (22:01 +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 <stefano.lattarini@gmail.com>
automake.in

index b31ac11ee357de10cfb82f46e036969b48ea0826..0f29412079897bb6c8ea4317ecaa14bbf6a2353c 100644 (file)
@@ -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)
     {
        $output_rules .= &file_contents ('tags',
                                         new Automake::Location,