summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFranklin S. Cooper Jr2014-03-19 10:54:02 -0500
committerFranklin S. Cooper Jr2014-03-19 10:54:02 -0500
commit7f5dccfb5b1b68a3f9162f6ee072eef0e0ba06fe (patch)
treebdf9d956ca09b9319d847c35eb90ff304a7fe7ef /Makefile.build
parent8517ac2338295ccb4c6c2ffa58b5ad48659a5430 (diff)
downloadmatrix_browser-7f5dccfb5b1b68a3f9162f6ee072eef0e0ba06fe.tar.gz
matrix_browser-7f5dccfb5b1b68a3f9162f6ee072eef0e0ba06fe.tar.xz
matrix_browser-7f5dccfb5b1b68a3f9162f6ee072eef0e0ba06fe.zip
Rename SDK Makefile back to Makefile.build
* This insures that Qt users will have qmake generate "Makefile" instead of App-Makefile which is the expected/default behavior. Signed-off-by: Franklin S. Cooper Jr <fcooper@ti.com>
Diffstat (limited to 'Makefile.build')
-rw-r--r--Makefile.build48
1 files changed, 48 insertions, 0 deletions
diff --git a/Makefile.build b/Makefile.build
new file mode 100644
index 0000000..192c6f6
--- /dev/null
+++ b/Makefile.build
@@ -0,0 +1,48 @@
1-include ../../Rules.make
2
3ENV_SETUP ?= ../../linux-devkit/environment-setup
4DESTDIR ?=
5
6all: release
7
8.PHONY: qmake
9qmake : matrix_browser.pro
10 @. ${ENV_SETUP}; \
11 qmake2 CONFIG+=release matrix_browser.pro
12
13qmake_debug : matrix_browser.pro
14 @. ${ENV_SETUP}; \
15 qmake2 CONFIG+=debug matrix_browser.pro
16
17debug : qmake_debug
18 @. ${ENV_SETUP}; \
19 make
20
21release : qmake
22 @. ${ENV_SETUP}; \
23 make
24
25clean : qmake
26 @. ${ENV_SETUP}; \
27 make distclean
28
29install: release
30 @if [ ! -d $(DESTDIR) ] ; then \
31 echo "The extracted target filesystem directory doesn't exist."; \
32 echo "Please run setup.sh in the SDK's root directory and then try again."; \
33 exit 1; \
34 fi
35 @install -d ${DESTDIR}/usr/bin
36 @install matrix_browser ${DESTDIR}/usr/bin/matrix_browser; \
37 echo "matrix_browser release version installed."
38
39install_debug: debug
40 @if [ ! -d $(DESTDIR) ] ; then \
41 echo "The extracted target filesystem directory doesn't exist."; \
42 echo "Please run setup.sh in the SDK's root directory and then try again."; \
43 exit 1; \
44 fi
45 @install -d ${DESTDIR}/usr/bin
46 @install matrix_browser ${DESTDIR}/usr/bin/matrix_browser; \
47 echo "matrix_browser debug version installed."
48