maint: Rebuild '.version' when 'config.status' changes.

* Makefile.am ($(top_srcdir)/.version): Depend on 'config.status'.  Use
$(AM_V_GEN).
This commit is contained in:
Ludovic Courtès 2020-11-13 22:48:34 +01:00
parent 627e61f1a8
commit c6e8f40f2c
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -731,8 +731,8 @@ distcheck-hook: assert-binaries-available assert-final-inputs-self-contained
EXTRA_DIST += $(top_srcdir)/.version EXTRA_DIST += $(top_srcdir)/.version
BUILT_SOURCES += $(top_srcdir)/.version BUILT_SOURCES += $(top_srcdir)/.version
$(top_srcdir)/.version: $(top_srcdir)/.version: config.status
echo $(VERSION) > "$@-t" && mv "$@-t" "$@" $(AM_V_GEN)echo $(VERSION) > "$@-t" && mv "$@-t" "$@"
gen-tarball-version: gen-tarball-version:
echo $(VERSION) > "$(distdir)/.tarball-version" echo $(VERSION) > "$(distdir)/.tarball-version"