]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* Makefile.am (EXTRA_DIST): Don't distribute instutils.
authorPavel Roskin <pavel_roskin@geocities.com>
Fri, 21 May 1999 14:20:24 +0000 (14:20 +0000)
committerGary V. Vaughan <gary@gnu.org>
Fri, 21 May 1999 14:20:24 +0000 (14:20 +0000)
(install-data-hook): use libltdl/Makefile.am's local-install files
rule.
* libltdl/Makefile.am (local-install-files):  New rule to install
libltdl without creating links or mode 777 directories.
* instutil/*: deleted.

ChangeLog
Makefile.am
libltdl/Makefile.am

index 9ee1ad99bfdcac08e196ae3ad347a219f8484ca9..bc64b9dc651144ee46b631b39d3b56584b35e852 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+1999-05-21  Pavel Roskin  <pavel_roskin@geocities.com> 
+
+       * Makefile.am (EXTRA_DIST): Don't distribute instutils.
+       (install-data-hook): use libltdl/Makefile.am's local-install files
+       rule.
+       * libltdl/Makefile.am (local-install-files):  New rule to install
+       libltdl without creating links or mode 777 directories.
+       * instutil/*: deleted.
+
 1999-05-21  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
        * doc/PLATFORMS: Updated to 1.3.1 for all platforms I've got.
index 7af058efa9da4e31807a6eaf4ae9cd999ce93337..861f8f077940ae19c466748def3df212eca09a48 100644 (file)
@@ -1,6 +1,6 @@
 ## Process this file with automake to produce Makefile.in
 
-AUTOMAKE_OPTIONS = 1.3e gnits readme-alpha
+AUTOMAKE_OPTIONS = 1.3e gnu
 
 BUILD_SUBDIRS = . libltdl doc tests
 SUBDIRS = $(BUILD_SUBDIRS)
@@ -15,7 +15,7 @@ LIBS= @LIBS@
 aclocal_macros = libtool.m4
 
 EXTRA_DIST = $(aclocal_macros) libtoolize.in ltconfig.in ltmain.in \
-       mkstamp ChangeLog.0 instutil/chmod instutil/ln
+       mkstamp ChangeLog.0
 CLEANFILES = libtool libtoolize ltconfig.T ltmain.shT
 
 # These are required by libtoolize.
@@ -101,8 +101,7 @@ configure-subdirs distdir: $(DIST_MAKEFILE_LIST)
 
 # Create and install libltdl
 install-data-hook:
-       PATH=`cd $(srcdir)/instutil && pwd`":$$PATH" && \
-       cd libltdl && $(MAKE) distdir distdir=$(DESTDIR)$(pkgdatadir)/libltdl
+       cd libltdl && $(MAKE) local-install-files
 
 # Uninstall libltdl
 uninstall-local:
index 94e45f8b97463900b062c99d8495d2cdb551c595..632c37a96021ce650cb903ab11a0c55b5b6d4e49 100644 (file)
@@ -26,3 +26,20 @@ ltdl.lo: ltdl.h config.h
 $(OBJECTS): libtool
 libtool: $(LIBTOOL_DEPS)
        $(SHELL) ./config.status --recheck
+
+## This allows us to install libltdl without using ln and without creating
+## a world writeable directory.
+## FIXME:  Removed this rule once automake can do this properly by itself.
+local-install-files: $(DISTFILES)
+       -rm -rf $(DESTDIR)$(datadir)/libtool/libltdl
+       $(mkinstalldirs) $(DESTDIR)$(datadir)/libtool/libltdl
+       @for file in $(DISTFILES); do \
+         d=$(srcdir); \
+         if test -d $$d/$$file; then \
+           cp -pr $$d/$$file $(DESTDIR)$(datadir)/libtool/libltdl/$$file; \
+         else \
+           test -f $(DESTDIR)$(datadir)/libtool/libltdl/$$file \
+           || cp -p $$d/$$file $(DESTDIR)$(datadir)/libtool/libltdl/$$file || :; \
+         fi; \
+       done