From: Tom Tromey Date: Tue, 13 May 1997 14:20:43 +0000 (+0000) Subject: dependency fixlet X-Git-Tag: Release-1-2~29 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=be7aa677dcf69c03f4e2c0fbe6434216e074ed46;p=automake.git dependency fixlet --- diff --git a/ChangeLog b/ChangeLog index ce8e5751..0b1a26a6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue May 13 08:20:02 1997 Tom Tromey + + * automake.in (handle_dependencies): Don't generate dependencies + if DEP_FILES would be empty. + Sun May 11 13:59:14 1997 Tom Tromey * config.guess: New version from FSF. diff --git a/TODO b/TODO index ebbca1c3..947d9248 100644 --- a/TODO +++ b/TODO @@ -1,3 +1,9 @@ +* define LINK if a program is mentioned, even if no C sources appear + +* BUILT_SOURCES should not be distributed, even when they appear in + another _SOURCES line. [? or maybe just leave this up to the + to-be-defined generic distribution method ] + * in --cygnus, clean-info not generated at top level * what if an element of a scanned variable looks like diff --git a/automake.in b/automake.in index 506f98ee..471fd588 100755 --- a/automake.in +++ b/automake.in @@ -2645,8 +2645,9 @@ sub handle_dependencies { if ($use_dependencies) { - # Include GNU-make-specific auto-dep code. - if ($dir_holds_sources) + # Include GNU-make-specific auto-dep code. Don't include it + # if DEP_FILES would be empty. + if ($dir_holds_sources && keys %dep_files) { &define_pretty_variable ('DEP_FILES', '', sort keys %dep_files); $output_rules .= &file_contents ('depend');