diff options
Diffstat (limited to 'include/package-bin.mk')
-rw-r--r-- | include/package-bin.mk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/package-bin.mk b/include/package-bin.mk index ee35ca180f..3d0baad228 100644 --- a/include/package-bin.mk +++ b/include/package-bin.mk @@ -28,8 +28,9 @@ ifeq ($(DUMP),) install-bin-$(1): $(PKG_BUILD_DIR)/.pkgdir/$(1).installed rm -rf $(BIN_DIR)/$(1) - $(INSTALL_DIR) $(BIN_DIR)/$(1) - $(CP) $(PKG_BUILD_DIR)/.pkgdir/$(1)/. $(BIN_DIR)/$(1)/ + $(if $(wildcard $(PKG_BUILD_DIR)/.pkgdir/$(1)/*), \ + $(INSTALL_DIR) $(BIN_DIR)/$(1) && $(CP) $(PKG_BUILD_DIR)/.pkgdir/$(1)/. $(BIN_DIR)/$(1)/ \ + ) clean-$(1): rm -rf $(BIN_DIR)/$(1) |