]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* Makefile.am (libltdl.tar.gz): don't create it as part of the
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Mon, 18 Jan 1999 13:16:55 +0000 (13:16 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Mon, 18 Jan 1999 13:16:55 +0000 (13:16 +0000)
build, since it is likely to become stale if we do
(install-data-hook): create and install libltdl.tar.gz, without
depending on GNU tar
Reported by Manfred Weichel <Manfred.Weichel@pdb.siemens.de>

ChangeLog
Makefile.am

index f80cf2dafff9b4c009f7695af9045b27b94aa4f5..4c8da3ca4a37f9d754042931b2e62922fcf81cfd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+1999-01-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
+
+       * Makefile.am (libltdl.tar.gz): don't create it as part of the
+       build, since it is likely to become stale if we do
+       (install-data-hook): create and install libltdl.tar.gz, without
+       depending on GNU tar
+       Reported by Manfred Weichel <Manfred.Weichel@pdb.siemens.de>
+
 1999-01-17  Thomas Tanner  <tanner@gmx.de>
 
        * Makefile.am: added libltdl.tar.gz to CLEANFILES
index 685ab8dd7fd050f7c7674f9c0527c19eba78cd27..1cf3c7510dd116f270ee894f268f9252e0033e7e 100644 (file)
@@ -19,7 +19,7 @@ CLEANFILES = libtool libtoolize ltconfig.T ltmain.shT libltdl.tar.gz
 
 # These are required by libtoolize.
 pkgdata_SCRIPTS = config.guess config.sub ltconfig
-pkgdata_DATA = ltmain.sh libltdl.tar.gz
+pkgdata_DATA = ltmain.sh
 
 # This macro file should be visible to Automake's aclocal.
 aclocaldir = @aclocaldir@
@@ -28,11 +28,6 @@ aclocal_DATA = $(aclocal_macros)
 # The standalone libtool script, and the libtool distributor.
 bin_SCRIPTS = libtool libtoolize
 
-libltdl.tar.gz: libltdl/Makefile
-       (cd libltdl && $(MAKE) dist)
-       rm -f libltdl.tar.gz
-       ln -s libltdl/libltdl-1.0.tar.gz libltdl.tar.gz
-
 libtool: $(srcdir)/ltmain.sh $(srcdir)/ltconfig
        CC="$(CC)" CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" \
        LD="$(LD)" LN_S="$(LN_S)" NM="$(NM)" RANLIB="$(RANLIB)" \
@@ -82,6 +77,17 @@ configure-subdirs distdir: $(DIST_MAKEFILE_LIST)
        abs_srcdir=`cd $(top_srcdir) >/dev/null && pwd`; \
        (cd $$dir && $$abs_srcdir/$$dir/configure) || exit 1
 
+# Create and install libltdl.tar.gz
+install-data-hook: libltdl/Makefile
+       if (cd libltdl && $(MAKE) distdir distdir=libltdl && \
+        tar -cf libltdl.tar libltdl && \
+        gzip $(GZIP_ENV) libltdl.tar); then \
+         $(INSTALL_DATA) libltdl/libltdl.tar.gz $(pkgdatadir)/libltdl.tar.gz; \
+       else \
+         echo Warning: without gzip, libtool cannot install libltdl.tar.gz; \
+       fi; \
+       rm -rf libltdl/libltdl libltdl/libltdl.tar libltdl/libltdl.tar.gz
+
 ################################################################
 ##
 ## Everything past here is useful to the maintainer, but probably not