summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c6052e1)
raw | patch | inline | side by side (parent: c6052e1)
author | Manisha Agrawal <manisha.agrawal@ti.com> | |
Fri, 14 Dec 2018 21:22:53 +0000 (21:22 +0000) | ||
committer | Manisha 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] | patch | blob |
diff --git a/Makefile.build b/Makefile.build
--- /dev/null
+++ b/Makefile.build
@@ -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."
+