diff src/native-binutils.mk @ 3012:100e618349f7

Improve handling of prefix directories by defining HOST_PREFIX and BUILD_TOOLS_PREFIX variables in top-level Makefile.
author John W. Eaton <jwe@octave.org>
date Sun, 02 Jun 2013 10:31:04 -0400
parents c90f5757f351
children bcc26ffe9a0f
line wrap: on
line diff
--- a/src/native-binutils.mk	Sat Jun 01 20:52:09 2013 -0400
+++ b/src/native-binutils.mk	Sun Jun 02 10:31:04 2013 -0400
@@ -19,12 +19,12 @@
 
 define $(PKG)_BUILD
     # install config.guess for general use
-    $(INSTALL) -d '$(PREFIX)/../dist/usr/bin'
-    $(INSTALL) -m755 '$(1)/config.guess' '$(PREFIX)/../dist/usr/bin/'
+    $(INSTALL) -d '$(TOP_DIR)/dist/usr/bin'
+    $(INSTALL) -m755 '$(1)/config.guess' '$(TOP_DIR)/dist/usr/bin/'
 
     # install target-specific autotools config file
-    $(INSTALL) -d '$(PREFIX)/../dist/usr/share'
-    echo "ac_cv_build=`$(1)/config.guess`" > '$(PREFIX)/../dist/usr/share/config.site'
+    $(INSTALL) -d '$(TOP_DIR)/dist/usr/share'
+    echo "ac_cv_build=`$(1)/config.guess`" > '$(TOP_DIR)/dist/usr/share/config.site'
 
     cd '$(1)' && ./configure \
         --target='$(TARGET)' \
@@ -38,5 +38,5 @@
         $(ENABLE_SHARED_OR_STATIC) \
         --disable-werror
     $(MAKE) -C '$(1)' -j '$(JOBS)'
-    $(MAKE) -C '$(1)' -j 1 DESTDIR='$(PREFIX)/../native-tools' install
+    $(MAKE) -C '$(1)' -j 1 DESTDIR='$(TOP_DIR)/native-tools' install
 endef