summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2020-11-13 22:48:34 +0100
committerLudovic Courtès <ludo@gnu.org>2020-11-13 22:48:34 +0100
commitc6e8f40f2ce6082171c18b4aad9877b0ad022563 (patch)
treeec1789153ffa499b8d4878c51e6c83e2bdc0a119
parent627e61f1a8e08fcc2290df12309a6e0712a6c7f4 (diff)
maint: Rebuild '.version' when 'config.status' changes.
* Makefile.am ($(top_srcdir)/.version): Depend on 'config.status'. Use $(AM_V_GEN).
-rw-r--r--Makefile.am4
1 files 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"