summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2020-11-27 18:02:08 -0800
committerKarl Berry <karl@freefriends.org>2020-11-27 18:02:08 -0800
commit7581ec208302e37952cade631b82b0924451822c (patch)
tree1710498f7eb55765e20ea5ac532a9893c0a27ffe /bin
parent1f166f3c78cb36f907c415e93ec1e5ba8ece0a72 (diff)
downloadautomake-7581ec208302e37952cade631b82b0924451822c.tar.gz
vala: avoid wrong regeneration of C files.
This change might fix https://bugs.gnu.org/44772. * bin/automake.in (lang_val_finish_target): reverse -newer test to handle files being created at the same time causing spurious rebuilds.
Diffstat (limited to 'bin')
-rw-r--r--bin/automake.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/automake.in b/bin/automake.in
index 31c72382a..ce06437db 100644
--- a/bin/automake.in
+++ b/bin/automake.in
@@ -5734,7 +5734,7 @@ sub lang_vala_finish_target
my $built_dir = dirname $built_c_file;
my $base_c_file = basename $c_file;
$output_rules .= "$built_c_file: \$(builddir)/${derived}_vala.stamp\n"
- . "\t\@if test ! -f \$@ && test \$(srcdir) != \$(builddir) && test -n \"\$\$(find -L \$(srcdir)/$c_file -prune -newer \$(srcdir)/$vala_file)\"; then cp -p \$(srcdir)/$c_file $built_c_file; fi\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"
. "\t\@if test -f \$@; then :; else \\\n"
. "\t \$(MAKE) \$(AM_MAKEFLAGS) \$(builddir)/${derived}_vala.stamp; \\\n"