summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-12-05 18:19:18 -0800
committerKarl Berry <karl@freefriends.org>2020-12-05 18:19:18 -0800
commit46420770f96f77b0ca0be8a90919ba2378415481 (patch)
tree343aa6acef69802af38299bc901aa153cee9ce15 /bin
parentd2ccbd7eb38d6a4277d6f42b994eb5a29b1edf29 (diff)
downloadautomake-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.in6
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"