]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - sitara-linux/video-graphics-test.git/blob - Makefile.build
c4b2e3b50b8dab44cffdc18e0b20cc0ec1902677
[sitara-linux/video-graphics-test.git] / Makefile.build
1 -include ../../Rules.make
3 ENV_SETUP ?= ../../linux-devkit/environment-setup
4 DESTDIR ?= 
5 MATRIX_APP_DIR ?= /usr/share/matrix-gui-2.0/apps/
7 all: release
9 .PHONY: qmake
10 qmake: video_graphics_test.pro
11         @. ${ENV_SETUP}; \
12         qmake CONFIG+=release video_graphics_test.pro
14 qmake_debug : video_graphics_test.pro
15         @. ${ENV_SETUP}; \
16         qmake CONFIG+=debug video_graphics_test.pro
18 debug : qmake_debug
19         @. ${ENV_SETUP}; \
20         make
22 release : qmake
23         @. ${ENV_SETUP}; \
24         make
26 clean : qmake
27         @. ${ENV_SETUP}; \
28         make distclean
30 install_common:
31         @if [ ! -d $(DESTDIR) ] ; then \
32                 echo "The extracted target filesystem directory doesn't exist."; \
33                 echo "Please run setup.sh in the SDK's root directory and then try again."; \
34                 exit 1; \
35         fi
36         @install -d ${DESTDIR}/usr/bin
37         @install video_graphics_test ${DESTDIR}/usr/bin/video_graphics_test
39 install: release install_common
40         @echo "video_graphics_test release version installed."
42 install_debug: debug install_common
43         @echo "vidoe_graphics_test debug version installed."