From: Felix Fietkau Date: Sun, 21 Jan 2007 01:12:37 +0000 (+0000) Subject: fix firmwarehotplug prereq check on sdcc X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=82f47e44fd8ed100b03fdf8dc98271c7badea9c4;p=openwrt%2Fsvn-archive%2Fpackages.git fix firmwarehotplug prereq check on sdcc SVN-Revision: 6151 --- diff --git a/utils/firmwarehotplug/Makefile b/utils/firmwarehotplug/Makefile index 8b10fb7a8..cff3be1c1 100644 --- a/utils/firmwarehotplug/Makefile +++ b/utils/firmwarehotplug/Makefile @@ -50,9 +50,14 @@ endef $(eval $(call BuildPackage,firmwarehotplug)) define Require/working-sdcc - echo 'int main() { return 0; }' >$(TMP_DIR)/a.c; \ - sdcc -o $(TMP_DIR)/a.out $(TMP_DIR)/a.c; \ - rm -f $(TMP_DIR)/a.* + echo 'int main() { return 0; }' >$(TMP_DIR)/a.c; \ + sdcc -o $(TMP_DIR)/a.out $(TMP_DIR)/a.c && { \ + rm -f $(TMP_DIR)/a.* \ + } || { \ + rm -f $(TMP_DIR)/a.*; \ + false \ + } + endef $(eval $(call Require,working-sdcc, \