]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - matrix-gui-v2/image-gallery.git/commitdiff
Add Makefile.build for SDK integration
authorFranklin S. Cooper Jr <fcooper@ti.com>
Tue, 29 Apr 2014 16:15:54 +0000 (11:15 -0500)
committerFranklin S. Cooper Jr <fcooper@ti.com>
Tue, 29 Apr 2014 16:15:54 +0000 (11:15 -0500)
Signed-off-by: Franklin S. Cooper Jr <fcooper@ti.com>
Makefile.build [new file with mode: 0644]

diff --git a/Makefile.build b/Makefile.build
new file mode 100644 (file)
index 0000000..72f768b
--- /dev/null
@@ -0,0 +1,46 @@
+-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 : image-gallery.pro
+       @. ${ENV_SETUP}; \
+       qmake2 CONFIG+=release image-gallery.pro
+
+qmake_debug : image-gallery.pro
+       @. ${ENV_SETUP}; \
+       qmake2 CONFIG+=debug image-gallery.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}/qt-image-gallery
+       @install image-gallery ${DESTDIR}/usr/bin/image-gallery
+       @install matrix/* ${DESTDIR}/${MATRIX_APP_DIR}/qt-image-gallery
+
+install: release install_common
+       @echo "image-gallery release version installed."
+
+install_debug: debug install_common
+       @echo "image-gallery debug version installed."
+