summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-12-03 23:05:44 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-12-07 21:53:57 +0100
commitabed1cec06ca6fbb14c28f5407cbc513ac29c39a (patch)
tree47d34a384106e5976c42cae7331956bb2db62afa
parenta9d7cdd77e3a3fa5f92a9461738da80fc39b9d76 (diff)
downloadbuildroot-abed1cec06ca6fbb14c28f5407cbc513ac29c39a.tar.gz
buildroot-abed1cec06ca6fbb14c28f5407cbc513ac29c39a.zip
qtuio: add error handling to for loop
Also remove unneeded sub-shell usage in the build and installation steps. It is kept for the configure step as it is actually useful, and works fine because "|| exit 1" is outside the sub-shell. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
-rw-r--r--package/qtuio/qtuio.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/package/qtuio/qtuio.mk b/package/qtuio/qtuio.mk
index 9925f84699..5fa10a76b7 100644
--- a/package/qtuio/qtuio.mk
+++ b/package/qtuio/qtuio.mk
@@ -19,7 +19,7 @@ QTUIO_EXAMPLES = dials fingerpaint knobs pinchzoom
ifeq ($(BR2_QTUIO_EXAMPLES),y)
define QTUIO_CONFIGURE_EXAMPLES
for example in $(QTUIO_EXAMPLES) ; do \
- (cd $(@D)/examples/$${example} && $(TARGET_MAKE_ENV) $(QT_QMAKE)) ; \
+ (cd $(@D)/examples/$${example} && $(TARGET_MAKE_ENV) $(QT_QMAKE)) || exit 1; \
done
endef
endif
@@ -32,7 +32,7 @@ endef
ifeq ($(BR2_QTUIO_EXAMPLES),y)
define QTUIO_BUILD_EXAMPLES
for example in $(QTUIO_EXAMPLES) ; do \
- ($(MAKE) -C $(@D)/examples/$${example}) ; \
+ $(MAKE) -C $(@D)/examples/$${example} || exit 1; \
done
endef
endif
@@ -46,7 +46,7 @@ endef
ifeq ($(BR2_QTUIO_EXAMPLES),y)
define QTUIO_INSTALL_EXAMPLES
for example in $(QTUIO_EXAMPLES) ; do \
- ($(INSTALL) -D -m 0755 $(@D)/examples/$${example}/$${example} $(TARGET_DIR)/usr/share/qtuio/$${example}) ; \
+ $(INSTALL) -D -m 0755 $(@D)/examples/$${example}/$${example} $(TARGET_DIR)/usr/share/qtuio/$${example} || exit 1 ; \
done
endef
endif
OpenPOWER on IntegriCloud