comparison src/qwt.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 d4fbd818a248
children b6c7244a2f66
comparison
equal deleted inserted replaced
3011:75e142c0004b 3012:100e618349f7
16 head -1 16 head -1
17 endef 17 endef
18 18
19 define $(PKG)_BUILD 19 define $(PKG)_BUILD
20 # build 20 # build
21 cd '$(1)/src' && $(PREFIX)/bin/$(TARGET)-qmake 21 cd '$(1)/src' && $(BUILD_TOOLS_PREFIX)/bin/$(TARGET)-qmake
22 $(MAKE) -C '$(1)/src' -f 'Makefile.Release' -j '$(JOBS)' install 22 $(MAKE) -C '$(1)/src' -f 'Makefile.Release' -j '$(JOBS)' install
23 23
24 #build sinusplot example to test linkage 24 #build sinusplot example to test linkage
25 cd '$(1)/examples/sinusplot' && $(PREFIX)/bin/$(TARGET)-qmake 25 cd '$(1)/examples/sinusplot' && $(BUILD_TOOLS_PREFIX)/bin/$(TARGET)-qmake
26 $(MAKE) -C '$(1)/examples/sinusplot' -f 'Makefile.Release' -j '$(JOBS)' 26 $(MAKE) -C '$(1)/examples/sinusplot' -f 'Makefile.Release' -j '$(JOBS)'
27 27
28 # install 28 # install
29 $(INSTALL) -m755 '$(1)/examples/bin/sinusplot.exe' '$(PREFIX)/$(TARGET)/bin/test-qwt.exe' 29 $(INSTALL) -m755 '$(1)/examples/bin/sinusplot.exe' '$(HOST_PREFIX)/bin/test-qwt.exe'
30 endef 30 endef