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>
&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,