me
/
guix
Archived
1
0
Fork 0

maint: 'release' targets runs ./bootstrap for new version string.

Reported by Vagrant Cascadian <vagrant@debian.org>.

* Makefile.am (dist-with-updated-version): New target.
(release): Depend on 'dist-with-updated-version'.
master
Ludovic Courtès 2020-04-10 12:26:21 +02:00
parent eb0352e5b0
commit 08b14ab20e
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 11 additions and 1 deletions

View File

@ -705,6 +705,16 @@ gen-AUTHORS:
"$(top_srcdir)" "$(distdir)/AUTHORS"; \ "$(top_srcdir)" "$(distdir)/AUTHORS"; \
fi fi
# Like 'dist', but regenerate 'configure' so we get an up-to-date
# 'PACKAGE_VERSION' string. (In Gnulib, 'GNUmakefile' has a special trick to
# do that whenever a 'dist' target is used.)
dist-with-updated-version:
@echo "Running './bootstrap' for new version string..."
$(top_srcdir)/bootstrap
$(MAKE) $(AM_MAKEFLAGS) $(top_srcdir)/.version dist
.PHONY: dist-with-updated-version
# #
# Release management. # Release management.
@ -760,7 +770,7 @@ system_flags = $(foreach system,$(1),-s $(system))
# #
# XXX: Depend on 'dist' rather than 'distcheck' to work around the Gettext # XXX: Depend on 'dist' rather than 'distcheck' to work around the Gettext
# issue described at <https://savannah.gnu.org/bugs/index.php?51027>. # issue described at <https://savannah.gnu.org/bugs/index.php?51027>.
release: dist release: dist-with-updated-version
cd po; git checkout . cd po; git checkout .
@if ! git diff-index --quiet HEAD; then \ @if ! git diff-index --quiet HEAD; then \
echo "There are uncommitted changes; stopping." >&2 ; \ echo "There are uncommitted changes; stopping." >&2 ; \