From 7ef211e8d6aed14f77b344d976e207bc77e365a7 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Tue, 28 Aug 2007 20:51:19 +0000 Subject: Use DESTDIR when installing --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index c935520db7..445b008d87 100644 --- a/Makefile +++ b/Makefile @@ -163,7 +163,6 @@ endif # Same as default rule, but we pass $(INSTALL_STAGE) to $(MAKE) too install :: check-packages - $(INSTALL_DIR) $(bindir) @case '${MFLAGS}' in *-[ik]*) x_on_err=0;; *-r*[ik]*) x_on_err=0;; *) x_on_err=1;; esac; \ for i in $(SUBDIRS); do \ echo "------------------------------------------------------------------------"; \ @@ -207,8 +206,8 @@ endif # Install gcc-extra-opts install :: - @$(INSTALL_DIR) $(libdir) - $(INSTALL_DATA) $(INSTALL_OPTS) extra-gcc-opts $(libdir) + $(INSTALL_DIR) $(DESTDIR)$(libdir) + $(INSTALL_DATA) $(INSTALL_OPTS) extra-gcc-opts $(DESTDIR)$(libdir) install-docs :: @case '${MFLAGS}' in *-[ik]*) x_on_err=0;; *-r*[ik]*) x_on_err=0;; *) x_on_err=1;; esac; \ -- cgit v1.2.1