{
# Include auto-dep code. Don't include it if DEP_FILES would
# be empty.
- if (&saw_sources_p (0) && keys %dep_files)
+ if (keys %extension_seen && keys %dep_files)
{
# Set location of depcomp.
- &define_variable ('depcomp',
- "\$(SHELL) $am_config_aux_dir/depcomp",
- INTERNAL);
- &define_variable ('am__depfiles_maybe', 'depfiles', INTERNAL);
+ define_variable ('depcomp', INTERNAL,
+ '$(SHELL) $(am__config_aux_dir)/depcomp');
require_conf_file ("$am_file.am", FOREIGN, 'depcomp');
# Handle TAGS.
sub handle_tags
{
- define_variable ('am__tagged_files',
- '$(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)'
- . "@config", INTERNAL);
+ my @config;
+ foreach my $spec (@config_headers)
+ {
+ my ($out, @ins) = split_config_file_spec ($spec);
+ foreach my $in (@ins)
+ {
+ # If the config header source is in this directory,
+ # require it.
+ push @config, basename ($in)
+ if $relative_dir eq dirname ($in);
+ }
+ }
+
++ define_variable ('am__tagged_files', INTERNAL,
++ qw/$(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)/,
++ @config);
+
my @tag_deps = ();
my @ctag_deps = ();
my @cscope_deps = ();
. "\tdone\n");
push (@cscope_deps, 'cscopelist-recursive');
&depend ('.PHONY', 'cscopelist-recursive');
- &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)
- {
- my ($out, @ins) = split_config_file_spec ($spec);
- foreach my $in (@ins)
- {
- # If the config header source is in this directory,
- # require it.
- push @config, basename ($in)
- if $relative_dir eq dirname ($in);
- }
- }
$output_rules .= &file_contents ('tags',
new Automake::Location,
- CONFIG => "@config",
TAGSDIRS => "@tag_deps",
CTAGSDIRS => "@ctag_deps",
CSCOPEDIRS => "@cscope_deps");