]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - sitara-linux/mmwavegesture-hmi.git/commitdiff
Makefile.build : add Makefile to enable build through SDK master
authorManisha Agrawal <manisha.agrawal@ti.com>
Fri, 14 Dec 2018 21:22:53 +0000 (21:22 +0000)
committerManisha Agrawal <manisha.agrawal@ti.com>
Fri, 14 Dec 2018 21:22:53 +0000 (21:22 +0000)
Signed-off-by: Manisha Agrawal <manisha.agrawal@ti.com>
Makefile.build [new file with mode: 0644]

diff --git a/Makefile.build b/Makefile.build
new file mode 100644 (file)
index 0000000..2a2145d
--- /dev/null
@@ -0,0 +1,44 @@
+-include ../../Rules.make
+
+ENV_SETUP ?= ../../linux-devkit/environment-setup
+DESTDIR ?= 
+MATRIX_APP_DIR ?= /usr/share/matrix-gui-2.0/apps/
+all: release
+
+.PHONY: qmake
+qmake : mmwavegesture_hmi.pro
+       @. ${ENV_SETUP}; \
+       qmake CONFIG+=release  mmwavegesture_hmi.pro
+
+qmake_debug : mmwavegesture_hmi.pro
+       @. ${ENV_SETUP}; \
+       qmake CONFIG+=debug mmwavegesture_hmi.pro
+
+debug : qmake_debug
+       @. ${ENV_SETUP}; \
+       make
+
+release : qmake
+       @. ${ENV_SETUP}; \
+       make
+
+clean : qmake
+       @. ${ENV_SETUP}; \
+       make distclean
+
+install_common:
+       @if [ ! -d $(DESTDIR) ] ; then \
+               echo "The extracted target filesystem directory doesn't exist."; \
+               echo "Please run setup.sh in the SDK's root directory and then try again."; \
+               exit 1; \
+       fi
+       @install -d ${DESTDIR}/usr/bin
+       @install -d ${DESTDIR}/${MATRIX_APP_DIR}/mmwavegesture-hmi
+       @install mmwavegesture_hmi ${DESTDIR}/usr/bin/mmwavegesture_hmi
+
+install: release install_common
+       @echo "mmwavegesture_hmi release version installed."
+
+install_debug: debug install_common
+       @echo "mmwavegesture_hmi debug version installed."
+