From 32ba8b74428eb60c4e128d7470b76f168fe2917d Mon Sep 17 00:00:00 2001 From: "Gary V. Vaughan" Date: Wed, 26 Nov 2003 13:36:31 +0000 Subject: [PATCH] * Makefile.am (stamp-vcl): New rules to force libtool and libtoolize scripts to update when the TIMESTAMP changes in ChangeLog, but the file modification time doesn't (e.g in cvs commit). Otherwise we'll carry on releasing tarballs with the wrong version numbers in the tools! --- ChangeLog | 6 ++++++ Makefile.am | 11 +++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index ccc5953ba..0c0e9de87 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2003-11-26 Gary V. Vaughan + * Makefile.am (stamp-vcl): New rules to force libtool and + libtoolize scripts to update when the TIMESTAMP changes in + ChangeLog, but the file modification time doesn't (e.g in cvs + commit). Otherwise we'll carry on releasing tarballs with the + wrong version numbers in the tools! + * config/mkstamp: Change output format to ` $rev $date'. * configure.ac: Make the banner more like suggestions in http://www.gnu.org/prep/standards_toc.html Section 4.6. diff --git a/Makefile.am b/Makefile.am index 1d25fbe6a..bba27b80b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -42,7 +42,7 @@ bin_SCRIPTS = libtool libtoolize config_status = $(top_builddir)/config.status -libtool: config/ltmain.sh $(top_builddir)/configure +libtool: config/ltmain.sh $(top_builddir)/config.status CONFIG_FILES= CONFIG_HEADERS= CONFIG_COMMANDS=$@ $(SHELL) $(config_status) chmod +x $@ @@ -51,7 +51,14 @@ libtoolize: $(srcdir)/libtoolize.in $(top_builddir)/config.status chmod +x $@ # Make sure configure is regenerated when the version timestamp changes -configure: ChangeLog +$(top_builddir)/config.status: stamp-vcl $(top_srcdir)/ChangeLog +stamp-vcl: vcl.tmp +vcl.tmp: + @set `$(SHELL) config/mkstamp < $(top_srcdir)/ChangeLog`; \ + echo "$$1" > vcl.tmp + @cmp -s vcl.tmp stamp-vcl \ + || (echo "Updating stamp-vcl"; cp vcl.tmp stamp-vcl) + -@rm -f vcl.tmp .PHONY: configure-subdirs configure-subdirs distdir: $(DIST_MAKEFILE_LIST) -- 2.47.2