summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cefb4cc)
raw | patch | inline | side by side (parent: cefb4cc)
author | Franklin S. Cooper Jr <fcooper@ti.com> | |
Tue, 29 Apr 2014 16:15:54 +0000 (11:15 -0500) | ||
committer | Franklin 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] | patch | blob |
diff --git a/Makefile.build b/Makefile.build
--- /dev/null
+++ b/Makefile.build
@@ -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."
+