Commit a767c8bd authored by Peter Korsgaard's avatar Peter Korsgaard
Browse files

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.
parent 0c204324
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -402,8 +402,7 @@ distclean:
ifeq ($(DL_DIR),$(BASE_DIR)/dl)
	rm -rf $(DL_DIR)
endif
	rm -rf $(BUILD_DIR) $(PROJECT_BUILD_DIR) $(BINARIES_DIR) \
	$(LINUX_KERNEL) $(BASE_DIR)/include \
	rm -rf $(TOOL_BUILD_DIR) $(BUILD_DIR) $(PROJECT_BUILD_DIR) $(BINARIES_DIR) \
	.config.cmd
	$(MAKE) -C $(CONFIG) clean