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 74a878c..c3e1ed7 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)