build: fix make clean, delete package directories for selected arch
authorFelix Fietkau <nbd@nbd.name>
Wed, 11 May 2016 08:02:36 +0000 (10:02 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 11 May 2016 08:02:36 +0000 (10:02 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Makefile

index 74a878c61d0a6754b1a039ca1cab5c715859af9a..c3e1ed77076feec19eeb171a780fa895a5dca6d8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -51,7 +51,7 @@ printdb:
 prepare: $(target/stamp-compile)
 
 clean: FORCE
-       rm -rf $(BUILD_DIR) $(STAGING_DIR) $(BIN_DIR) $(BUILD_LOG_DIR)
+       rm -rf $(BUILD_DIR) $(STAGING_DIR) $(BIN_DIR) $(OUTPUT_DIR)/packages/$(ARCH_PACKAGES) $(BUILD_LOG_DIR)
 
 dirclean: clean
        rm -rf $(STAGING_DIR_HOST) $(TOOLCHAIN_DIR) $(BUILD_DIR_HOST) $(BUILD_DIR_TOOLCHAIN)