From: Manisha Agrawal Date: Fri, 14 Dec 2018 21:22:53 +0000 (+0000) Subject: Makefile.build : add Makefile to enable build through SDK X-Git-Url: https://git.ti.com/gitweb?p=sitara-linux%2Fmmwavegesture-hmi.git;a=commitdiff_plain;h=0881fc8bc5b3c3411af7b69c3837a8b3a1fbedc5;hp=c6052e1cd1079b09bef78cdcd8e5151133c3b4e1 Makefile.build : add Makefile to enable build through SDK Signed-off-by: Manisha Agrawal --- diff --git a/Makefile.build b/Makefile.build new file mode 100644 index 0000000..2a2145d --- /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." +