From 11a645aa91e606eb9c1bdd67ad1f7a10584f100c Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Thu, 7 Jun 2012 19:12:11 +0200 Subject: [PATCH] tags: look at $(am__tagged_files) to decide whether to activate 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 --- automake.in | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/automake.in b/automake.in index b31ac11ee..0f2941207 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) { $output_rules .= &file_contents ('tags', new Automake::Location, -- 2.47.2