summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFranklin S Cooper Jr2014-02-05 15:15:10 -0600
committerFranklin S Cooper Jr2014-02-05 15:15:10 -0600
commitcca9da7bbb5c4a620b14ee7cda75cfccf7c13564 (patch)
tree22710a09cb8bce92f2d871af225dda5e389a56e4 /Makefile.build
parentdb2e6b10e5a14358b6120a4a28de2f9d591bc55c (diff)
downloadmatrix_browser-cca9da7bbb5c4a620b14ee7cda75cfccf7c13564.tar.gz
matrix_browser-cca9da7bbb5c4a620b14ee7cda75cfccf7c13564.tar.xz
matrix_browser-cca9da7bbb5c4a620b14ee7cda75cfccf7c13564.zip
Update Makefile
* Update Makefile to throw an error if destinatoin directory doesn't exist. * By default only build release version * Rename Makefile.build to Makefile * Have qmake generate App-Makefile as the makefile name Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
Diffstat (limited to 'Makefile.build')
-rw-r--r--Makefile.build37
1 files changed, 0 insertions, 37 deletions
diff --git a/Makefile.build b/Makefile.build
deleted file mode 100644
index 01e6f93..0000000
--- a/Makefile.build
+++ /dev/null
@@ -1,37 +0,0 @@
1-include ../../Rules.make
2
3ENV_SETUP ?= ../../linux-devkit/environment-setup
4DESTDIR ?=
5PLATFORM ?=
6PLATFORM_DEFINE ?= "Platform_${PLATFORM}"
7
8SOURCES = main.cpp matrix_browser.pro
9
10all: debug release
11
12qmake : matrix_browser.pro
13 @. ${ENV_SETUP}; \
14 qmake2 CONFIG+=debug_and_release QMAKE_CXXFLAGS_DEBUG+=-D${PLATFORM_DEFINE} QMAKE_CXXFLAGS_RELEASE+=-D${PLATFORM_DEFINE} matrix_browser.pro
15
16debug : ${SOURCES} qmake
17 @. ${ENV_SETUP}; \
18 make -f Makefile debug
19
20release : ${SOURCES} qmake
21 @. ${ENV_SETUP}; \
22 make -f Makefile release
23
24clean : ${SOURCES} qmake
25 @. ${ENV_SETUP}; \
26 make -f Makefile distclean
27
28install: release
29 @install -d ${DESTDIR}/usr/bin
30 @install matrix_browser ${DESTDIR}/usr/bin/matrix_browser; \
31 echo "matrix_browser release version installed."
32
33install_debug: debug
34 @install -d ${DESTDIR}/usr/bin
35 @install matrix_browser ${DESTDIR}/usr/bin/matrix_browser; \
36 echo "matrix_browser debug version installed."
37