浏览代码

Makefile: distclean: remove correct dirs

Remove toolchain build dir, and don't try to remove the non-existing include
dir. Also don't explicitly remove the kernel image located in binaries as
we're already removing that dir.
Peter Korsgaard 16 年之前
父节点
当前提交
a767c8bdf7
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      Makefile

+ 2 - 3
Makefile

@@ -402,9 +402,8 @@ distclean:
 ifeq ($(DL_DIR),$(BASE_DIR)/dl)
 ifeq ($(DL_DIR),$(BASE_DIR)/dl)
 	rm -rf $(DL_DIR)
 	rm -rf $(DL_DIR)
 endif
 endif
-	rm -rf $(BUILD_DIR) $(PROJECT_BUILD_DIR) $(BINARIES_DIR) \
-	$(LINUX_KERNEL) $(BASE_DIR)/include \
-		.config.cmd
+	rm -rf $(TOOL_BUILD_DIR) $(BUILD_DIR) $(PROJECT_BUILD_DIR) $(BINARIES_DIR) \
+	.config.cmd
 	$(MAKE) -C $(CONFIG) clean
 	$(MAKE) -C $(CONFIG) clean
 
 
 sourceball:
 sourceball: