Makefile.build: replace qmake2 with qmake
[apps/thermostat-demo.git] / Makefile.build
1 -include ../../Rules.make
3 ENV_SETUP ?= ../../linux-devkit/environment-setup
4 DESTDIR ?= 
5 MATRIX_APP_DIR ?= /usr/share/matrix-gui-2.0/apps/
7 all: release
9 .PHONY: qmake
10 qmake : ThermostatDemo.pro
11         @. ${ENV_SETUP}; \
12         qmake CONFIG+=release ThermostatDemo.pro
14 qmake_debug : ThermostatDemo.pro
15         @. ${ENV_SETUP}; \
16         qmake CONFIG+=debug ThermostatDemo.pro
18 debug : qmake_debug
19         @. ${ENV_SETUP}; \
20         make
22 release : qmake
23         @. ${ENV_SETUP}; \
24         make
26 clean : qmake
27         @. ${ENV_SETUP}; \
28         make distclean
30 install_common:
31         @if [ ! -d $(DESTDIR) ] ; then \
32                 echo "The extracted target filesystem directory doesn't exist."; \
33                 echo "Please run setup.sh in the SDK's root directory and then try again."; \
34                 exit 1; \
35         fi
36         @install -d ${DESTDIR}/usr/bin 
37         @install -m 0755 ThermostatDemo ${DESTDIR}/usr/bin/ThermostatDemo
38         @install -d ${DESTDIR}${MATRIX_APP_DIR}/qt_tstat
39         @cp -rf matrix-files/*  ${DESTDIR}${MATRIX_APP_DIR}/qt_tstat
41 install: release install_common
42         @echo "tstat release version installed."
44 install_debug: debug install_common
45         @echo "tstat debug version installed."