diff --git a/Makefile b/Makefile index 6520be52dc..6894a40fc8 100644 --- a/Makefile +++ b/Makefile @@ -50,13 +50,16 @@ printdb: prepare: $(target/stamp-compile) -clean: FORCE - rm -rf $(BUILD_DIR) $(STAGING_DIR) $(BIN_DIR) $(OUTPUT_DIR)/packages/$(ARCH_PACKAGES) $(BUILD_LOG_DIR) $(TOPDIR)/staging_dir/packages +_clean: FORCE + rm -rf $(BUILD_DIR) $(STAGING_DIR) $(BIN_DIR) $(OUTPUT_DIR)/packages/$(ARCH_PACKAGES) $(TOPDIR)/staging_dir/packages -targetclean: clean +clean: _clean + rm -rf $(BUILD_LOG_DIR) + +targetclean: _clean rm -rf $(TOOLCHAIN_DIR) $(BUILD_DIR_BASE)/hostpkg $(BUILD_DIR_TOOLCHAIN) -dirclean: targetclean +dirclean: targetclean clean rm -rf $(STAGING_DIR_HOST) $(STAGING_DIR_HOSTPKG) $(BUILD_DIR_BASE)/host rm -rf $(TMP_DIR) $(MAKE) -C $(TOPDIR)/scripts/config clean