diff --git a/target/sdk/Makefile b/target/sdk/Makefile
index 82b47cd946d4a546ea1c1e493aaccda6e3e8d537..60201c8b638c37ceef90a2e89cba8172259f4917 100644
--- a/target/sdk/Makefile
+++ b/target/sdk/Makefile
@@ -63,8 +63,8 @@ $(BIN_DIR)/$(SDK_NAME).tar.bz2: clean
 	mkdir -p $(SDK_BUILD_DIR)/target/linux
 	$(CP) $(GENERIC_PLATFORM_DIR) $(PLATFORM_DIR) $(SDK_BUILD_DIR)/target/linux/
 	rm -rf \
-		$(SDK_BUILD_DIR)/target/linux/*/files \
-		$(SDK_BUILD_DIR)/target/linux/*/patches
+		$(SDK_BUILD_DIR)/target/linux/*/files* \
+		$(SDK_BUILD_DIR)/target/linux/*/patches*
 	$(CP) -L \
 		$(TOPDIR)/LICENSE \
 		$(TOPDIR)/rules.mk \