summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2007-08-28 20:51:19 +0000
committerIan Lynagh <igloo@earth.li>2007-08-28 20:51:19 +0000
commit7ef211e8d6aed14f77b344d976e207bc77e365a7 (patch)
tree7b29ed82074889590e974fc0c0ff26a0a149c372 /Makefile
parent21afd63e4f61184acfc7e196f123861fa591df59 (diff)
downloadhaskell-7ef211e8d6aed14f77b344d976e207bc77e365a7.tar.gz
Use DESTDIR when installing
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 2 insertions, 3 deletions
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; \