build: use if-then to avoid non-zero return codes in bin/ packaging code
Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
1590b0fab0
commit
6699f58fdb
@ -29,10 +29,10 @@ ifeq ($(DUMP),)
|
|||||||
install-bin-$(1): $(PKG_BUILD_DIR)/.pkgdir/$(1).installed
|
install-bin-$(1): $(PKG_BUILD_DIR)/.pkgdir/$(1).installed
|
||||||
rm -rf $(BIN_DIR)/$(1)
|
rm -rf $(BIN_DIR)/$(1)
|
||||||
-rmdir $(PKG_BUILD_DIR)/.pkgdir/$(1) >/dev/null 2>/dev/null
|
-rmdir $(PKG_BUILD_DIR)/.pkgdir/$(1) >/dev/null 2>/dev/null
|
||||||
[ -d $(PKG_BUILD_DIR)/.pkgdir/$(1) ] && { \
|
if [ -d $(PKG_BUILD_DIR)/.pkgdir/$(1) ]; then \
|
||||||
$(INSTALL_DIR) $(BIN_DIR)/$(1) && \
|
$(INSTALL_DIR) $(BIN_DIR)/$(1) && \
|
||||||
$(CP) $(PKG_BUILD_DIR)/.pkgdir/$(1)/. $(BIN_DIR)/$(1)/; \
|
$(CP) $(PKG_BUILD_DIR)/.pkgdir/$(1)/. $(BIN_DIR)/$(1)/; \
|
||||||
}
|
fi
|
||||||
|
|
||||||
clean-$(1):
|
clean-$(1):
|
||||||
rm -rf $(BIN_DIR)/$(1)
|
rm -rf $(BIN_DIR)/$(1)
|
||||||
|
Loading…
Reference in New Issue
Block a user