summaryrefslogtreecommitdiffstats
blob: 79b55f5d1e09e16917e187af85d345878f0026d8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
-include ../../Rules.make

ENV_SETUP ?= ../../linux-devkit/environment-setup
DESTDIR ?= 

all: release

.PHONY: qmake
qmake : matrix_browser.pro
	@. ${ENV_SETUP}; \
	qmake CONFIG+=release matrix_browser.pro

qmake_debug : matrix_browser.pro
	@. ${ENV_SETUP}; \
	qmake CONFIG+=debug matrix_browser.pro

debug : qmake_debug
	@. ${ENV_SETUP}; \
	make

release : qmake
	@. ${ENV_SETUP}; \
	make

clean : qmake
	@. ${ENV_SETUP}; \
	make distclean

install: release
	@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 matrix_browser ${DESTDIR}/usr/bin/matrix_browser; \
	echo "matrix_browser release version installed."

install_debug: debug
	@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 matrix_browser ${DESTDIR}/usr/bin/matrix_browser; \
	echo "matrix_browser debug version installed."