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=7edeeba8dd40cc6bb0000cb7baa84ee109eca842;p=openwrt%2Fsvn-archive%2Farchive.git fix firmwarehotplug prereq check on sdcc SVN-Revision: 6151 --- diff --git a/utils/firmwarehotplug/Makefile b/utils/firmwarehotplug/Makefile index 8b10fb7a87..cff3be1c14 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, \