2003-01-02 H.J. Lu <hjl@gnu.org>
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 2 Jan 2003 20:51:02 +0000 (20:51 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 2 Jan 2003 20:51:02 +0000 (20:51 +0000)
* Makefile.in (DESTDIR): New.
(install-info): Use it.

etc/ChangeLog
etc/Makefile.in

index debe735ca99f2b965d56251f187626c3712db979..9a1a67d2015e7c90365e88c7c14f2ea3bd712968 100644 (file)
@@ -1,3 +1,8 @@
+2003-01-02  H.J. Lu <hjl@gnu.org>
+
+       * Makefile.in (DESTDIR): New.
+       (install-info): Use it.
+
 2002-06-11  Nick Clifton  <nickc@cambridge.redhat.com>
 
        Import the following patches from the FSF GCC sources:
index 2bc34574540e22ccc94ce8f831b17c2d024afe8b..63f7738c64aeeae2c2e7baaa9a888c6fa93e0dfd 100644 (file)
@@ -2,6 +2,8 @@
 # Makefile.in for etc
 #
 
+DESTDIR                =
+
 prefix                 = @prefix@
 exec_prefix    = @exec_prefix@
 
@@ -68,17 +70,17 @@ info:
        done
 
 install-info: info
-       $(SHELL) $(srcdir)/../mkinstalldirs $(infodir)
+       $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(infodir)
        if test ! -f standards.info; then cd $(srcdir); fi; \
        if test -f standards.info; then \
          for i in standards.info*; do \
-           $(INSTALL_DATA) $$i $(infodir)/$$i; \
+           $(INSTALL_DATA) $$i $(DESTDIR)$(infodir)/$$i; \
          done; \
        fi
        if test ! -f configure.info; then cd $(srcdir); fi; \
        if test -f configure.info; then \
          for i in configure.info*; do \
-           $(INSTALL_DATA) $$i $(infodir)/$$i; \
+           $(INSTALL_DATA) $$i $(DESTDIR)$(infodir)/$$i; \
          done; \
        fi