]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* Makefile.am (clean-ltmain-sh): Remove stale config/ltmain.sh
authorGary V. Vaughan <gary@gnu.org>
Tue, 31 Aug 2004 14:24:26 +0000 (14:24 +0000)
committerGary V. Vaughan <gary@gnu.org>
Tue, 31 Aug 2004 14:24:26 +0000 (14:24 +0000)
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 <Ralf.Wildenhues@gmx.de>

ChangeLog
Makefile.am

index 0631badf3305199a726b8dd631e422bfc86e70fc..67379b5f8a3ee0936a60c47e36ecde9b1ac42eb2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2004-08-31  Gary V. Vaughan  <gary@gnu.org>
+
+       * 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 <Ralf.Wildenhues@gmx.de>
+
 2004-08-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * bootstrap: Update warning message to reflect having split
index 34bab35a26616ff51b1dab1cdf24348bb54dd6b9..7f10f3804b4b43141a5651c4f10b9ee37c2b28ef 100644 (file)
@@ -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