Makefile.build : add Makefile to enable build through SDK
[sitara-linux/mmwavegesture-hmi.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/
6 all: release
8 .PHONY: qmake
9 qmake : mmwavegesture_hmi.pro
10         @. ${ENV_SETUP}; \
11         qmake CONFIG+=release  mmwavegesture_hmi.pro
13 qmake_debug : mmwavegesture_hmi.pro
14         @. ${ENV_SETUP}; \
15         qmake CONFIG+=debug mmwavegesture_hmi.pro
17 debug : qmake_debug
18         @. ${ENV_SETUP}; \
19         make
21 release : qmake
22         @. ${ENV_SETUP}; \
23         make
25 clean : qmake
26         @. ${ENV_SETUP}; \
27         make distclean
29 install_common:
30         @if [ ! -d $(DESTDIR) ] ; then \
31                 echo "The extracted target filesystem directory doesn't exist."; \
32                 echo "Please run setup.sh in the SDK's root directory and then try again."; \
33                 exit 1; \
34         fi
35         @install -d ${DESTDIR}/usr/bin
36         @install -d ${DESTDIR}/${MATRIX_APP_DIR}/mmwavegesture-hmi
37         @install mmwavegesture_hmi ${DESTDIR}/usr/bin/mmwavegesture_hmi
39 install: release install_common
40         @echo "mmwavegesture_hmi release version installed."
42 install_debug: debug install_common
43         @echo "mmwavegesture_hmi debug version installed."