[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/6] Ensure GUILE-VERSION changes propagate to .version and Makef
From: |
Rob Browning |
Subject: |
[PATCH 2/6] Ensure GUILE-VERSION changes propagate to .version and Makefiles |
Date: |
Mon, 1 Jul 2024 21:45:16 -0500 |
Have .version depend on the Makefile, and move our
CONFIG_STATUS_DEPENDENCIES setting to an AC_SUBST, as recommended by the
automake info pages "Rebuilding Makefiles" section, so that changes to
GUILE-VERSION will update the VERSION, etc. in the generated Makefiles.
* Makefile.am (CONFIG_STATUS_DEPENDENCIES): drop.
($(top_srcdir/.version)): depend on Makefile.
* configure: add GUILE-VERSION to CONFIG_STATUS_DEPENDENCIES via
AC_SUBST.
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
---
Makefile.am | 4 +---
configure.ac | 1 +
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index b2ac5539e..c74761628 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -110,8 +110,6 @@ endif !HAVE_READLINE
clean-local:
rm -rf cache/
-CONFIG_STATUS_DEPENDENCIES = GUILE-VERSION
-
gen_start_rev = 61db429e251bfd2f75cb4632972e0238056eb24b
.PHONY: gen-ChangeLog
gen-ChangeLog:
@@ -133,7 +131,7 @@ assert-no-store-file-names:
fi
BUILT_SOURCES += $(top_srcdir)/.version
-$(top_srcdir)/.version:
+$(top_srcdir)/.version: Makefile
echo $(VERSION) > $@-t && mv $@-t $@
gen-tarball-version:
echo $(VERSION) > $(distdir)/.tarball-version
diff --git a/configure.ac b/configure.ac
index 0dcb71cce..262b171f1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -40,6 +40,7 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])],
[AC_SUBST([AM_DEFAULT_VERB
AC_COPYRIGHT(GUILE_CONFIGURE_COPYRIGHT)
AC_CONFIG_SRCDIR([GUILE-VERSION])
+AC_SUBST([CONFIG_STATUS_DEPENDENCIES], ['$(top_srcdir)/GUILE-VERSION'])
. $srcdir/GUILE-VERSION
GUILE_VERSION="$PACKAGE_VERSION"
--
2.43.0
- [PATCH 0/6] A handful of post 3.0.10 fixups, Rob Browning, 2024/07/01
- [PATCH 3/6] Add guile-procedures.txt to BUILT_SOURCES, Rob Browning, 2024/07/01
- [PATCH 1/6] define-meta-command: mention effects of a missing category, Rob Browning, 2024/07/01
- [PATCH 4/6] test-hashing: support 32-bit, Rob Browning, 2024/07/01
- [PATCH 2/6] Ensure GUILE-VERSION changes propagate to .version and Makefiles,
Rob Browning <=
- [PATCH 5/6] scm_i_utf8_string_hash: don't overrun when len is zero, Rob Browning, 2024/07/01
- [PATCH 6/6] scm_i_utf8_string_hash: optimize ASCII, Rob Browning, 2024/07/01