From c6e8f40f2ce6082171c18b4aad9877b0ad022563 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Fri, 13 Nov 2020 22:48:34 +0100 Subject: [PATCH] maint: Rebuild '.version' when 'config.status' changes. * Makefile.am ($(top_srcdir)/.version): Depend on 'config.status'. Use $(AM_V_GEN). --- Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 9ef05ad27d..5b84d74f08 100644 --- a/Makefile.am +++ b/Makefile.am @@ -731,8 +731,8 @@ distcheck-hook: assert-binaries-available assert-final-inputs-self-contained EXTRA_DIST += $(top_srcdir)/.version BUILT_SOURCES += $(top_srcdir)/.version -$(top_srcdir)/.version: - echo $(VERSION) > "$@-t" && mv "$@-t" "$@" +$(top_srcdir)/.version: config.status + $(AM_V_GEN)echo $(VERSION) > "$@-t" && mv "$@-t" "$@" gen-tarball-version: echo $(VERSION) > "$(distdir)/.tarball-version"