diff options
author | Karl Berry <karl@freefriends.org> | 2020-12-05 18:19:18 -0800 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-12-05 18:19:18 -0800 |
commit | 46420770f96f77b0ca0be8a90919ba2378415481 (patch) | |
tree | 343aa6acef69802af38299bc901aa153cee9ce15 /bin | |
parent | d2ccbd7eb38d6a4277d6f42b994eb5a29b1edf29 (diff) | |
download | automake-46420770f96f77b0ca0be8a90919ba2378415481.tar.gz |
doc: comment Vala -newer test.
This change updates https://bugs.gnu.org/44772.
* bin/automake.in (lang_vala_finish_target): comment that
we're checking "C file not older than Vala file", and the
log message misleadingly says "reversed".
Diffstat (limited to 'bin')
-rw-r--r-- | bin/automake.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/automake.in b/bin/automake.in index 96e8c634c..8edd0c7a3 100644 --- a/bin/automake.in +++ b/bin/automake.in @@ -5738,6 +5738,12 @@ sub lang_vala_finish_target my $built_c_file = "\$(builddir)/$c_file"; my $built_dir = dirname $built_c_file; my $base_c_file = basename $c_file; + # + # The -newer test here is checking "C file not older than Vala + # file" (not "C file newer than Vala file"; see + # https://bugs.gnu.org/44772. The log message on the commit + # misleadingly says "reversed". + # $output_rules .= "$built_c_file: \$(builddir)/${derived}_vala.stamp\n" . "\t\@if test ! -f \$@ && test \$(srcdir) != \$(builddir) && test -n \"\$\$(find -L \$(srcdir)/$vala_file -prune \! -newer \$(srcdir)/$c_file)\"; then cp -p \$(srcdir)/$c_file $built_c_file; fi\n" . "\t\@if test -f \$@; then :; else rm -f \$(builddir)/${derived}_vala.stamp; fi\n" |