Remove obsolete make targets
authorFranklin S Cooper Jr <fcooper@ti.com>
Wed, 5 Feb 2014 22:43:11 +0000 (16:43 -0600)
committerFranklin S Cooper Jr <fcooper@ti.com>
Wed, 5 Feb 2014 22:43:11 +0000 (16:43 -0600)
* Remove make targets calls that no longer exist.
* Also place error statements in a single location.

Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
Makefile

index c5bcee13e3df168a0481f00e243b0d1a27a2103c..13ed5fd25076c467d91025b4a43e9fcc91dbfb93 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -17,34 +17,29 @@ qmake_debug : ThermostatDemo.pro
 
 debug : qmake_debug
        @. ${ENV_SETUP}; \
-       make -f App-Makefile debug
+       make -f App-Makefile
 
 release : qmake
        @. ${ENV_SETUP}; \
-       make -f App-Makefile release
+       make -f App-Makefile
 
 clean :
        @. ${ENV_SETUP}; \
        make -f App-Makefile 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 -m 0755 ThermostatDemo ${DESTDIR}/usr/bin/ThermostatDemo
        @install -d ${DESTDIR}${MATRIX_APP_DIR}/qt_tstat
        @cp -rf matrix-files/*  ${DESTDIR}${MATRIX_APP_DIR}/qt_tstat
 
 install: release 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
        @echo "tstat release version installed."
 
 install_debug: debug 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
        @echo "tstat debug version installed."