diff src/qwtplot3d.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 4d0f3a9da57e
children b6c7244a2f66
line wrap: on
line diff
--- a/src/qwtplot3d.mk	Sat Jun 01 20:52:09 2013 -0400
+++ b/src/qwtplot3d.mk	Sun Jun 02 10:31:04 2013 -0400
@@ -16,11 +16,11 @@
 endef
 
 define $(PKG)_BUILD
-    cd '$(1)' && '$(PREFIX)/bin/$(TARGET)-qmake'
+    cd '$(1)' && '$(BUILD_TOOLS_PREFIX)/bin/$(TARGET)-qmake'
     $(MAKE) -C '$(1)' -j '$(JOBS)'
-    $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib'
-    $(INSTALL) -m644 '$(1)/lib/libqwtplot3d.a' '$(PREFIX)/$(TARGET)/lib/'
-    $(INSTALL) -d '$(PREFIX)/$(TARGET)/include'
-    $(INSTALL) -d '$(PREFIX)/$(TARGET)/include/qwtplot3d'
-    $(INSTALL) -m644 '$(1)/include'/*.h  '$(PREFIX)/$(TARGET)/include/qwtplot3d/'
+    $(INSTALL) -d '$(HOST_PREFIX)/lib'
+    $(INSTALL) -m644 '$(1)/lib/libqwtplot3d.a' '$(HOST_PREFIX)/lib/'
+    $(INSTALL) -d '$(HOST_PREFIX)/include'
+    $(INSTALL) -d '$(HOST_PREFIX)/include/qwtplot3d'
+    $(INSTALL) -m644 '$(1)/include'/*.h  '$(HOST_PREFIX)/include/qwtplot3d/'
 endef