build: do not create empty directories in bin/
Some packages may not install any files Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
0e22d63775
commit
afd2827c5c
1 changed files with 3 additions and 2 deletions
|
@ -28,8 +28,9 @@ 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)
|
||||||
$(INSTALL_DIR) $(BIN_DIR)/$(1)
|
$(if $(wildcard $(PKG_BUILD_DIR)/.pkgdir/$(1)/*), \
|
||||||
$(CP) $(PKG_BUILD_DIR)/.pkgdir/$(1)/. $(BIN_DIR)/$(1)/
|
$(INSTALL_DIR) $(BIN_DIR)/$(1) && $(CP) $(PKG_BUILD_DIR)/.pkgdir/$(1)/. $(BIN_DIR)/$(1)/ \
|
||||||
|
)
|
||||||
|
|
||||||
clean-$(1):
|
clean-$(1):
|
||||||
rm -rf $(BIN_DIR)/$(1)
|
rm -rf $(BIN_DIR)/$(1)
|
||||||
|
|
Loading…
Reference in a new issue