From: Gary V. Vaughan Date: Tue, 31 Aug 2004 14:24:26 +0000 (+0000) Subject: * Makefile.am (clean-ltmain-sh): Remove stale config/ltmain.sh X-Git-Tag: release-1-9d~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03b6087d6ab0f145f02f1c0ac48881063ed214a8;p=thirdparty%2Flibtool.git * Makefile.am (clean-ltmain-sh): Remove stale config/ltmain.sh from the build tree that were left behind by previous versions of libtool. ($top_srcdir)/stamp-vcl: Since this rule is already called on every invocation of make, hook clean-ltmain-sh in here too. Suggested by Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index 0631badf3..67379b5f8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2004-08-31 Gary V. Vaughan + + * Makefile.am (clean-ltmain-sh): Remove stale config/ltmain.sh + from the build tree that were left behind by previous versions of + libtool. + ($top_srcdir)/stamp-vcl: Since this rule is already called on + every invocation of make, hook clean-ltmain-sh in here too. + Suggested by Ralf Wildenhues + 2004-08-31 Ralf Wildenhues * bootstrap: Update warning message to reflect having split diff --git a/Makefile.am b/Makefile.am index 34bab35a2..7f10f3804 100644 --- a/Makefile.am +++ b/Makefile.am @@ -66,7 +66,7 @@ aclocal_DATA = m4/argz.m4 m4/libtool.m4 m4/ltdl.m4 \ ## read-only $(top_srcdir), then when the two stamp-vcls differ, distcheck ## will try to update the one in the read-only source tree it makes. MKSTAMP = $(SHELL) $(top_srcdir)/config/mkstamp -$(top_srcdir)/stamp-vcl: vcl-tmp ChangeLog +$(top_srcdir)/stamp-vcl: vcl-tmp clean-ltmain-sh ChangeLog vcl-tmp: @set -- `$(MKSTAMP) < $(top_srcdir)/ChangeLog`; \ echo "$$1" > vcl.tmp; \ @@ -74,6 +74,14 @@ vcl-tmp: || (echo "Updating stamp-vcl"; cp vcl.tmp $(top_srcdir)/stamp-vcl) -@rm -f vcl.tmp +## We used to build ltmain.sh in the build tree, but now it is created +## in the source tree by bootstrap. This rule removes stale copies from +## previous builds left behind in the build tree, that would override the +## source tree version in current builds. +clean-ltmain-sh: + -test $(top_srcdir) == $(top_builddir) || \ + rm -f $(top_builddir)/config/ltmain.sh + # We build ltversion.m4 here, instead of from config.status, # because config.status is rerun each time one of configure's # dependencies change and ltversion.m4 happens to be a configure