summaryrefslogtreecommitdiffstats
path: root/core/main.mk
diff options
context:
space:
mode:
Diffstat (limited to 'core/main.mk')
-rw-r--r--core/main.mk13
1 files changed, 12 insertions, 1 deletions
diff --git a/core/main.mk b/core/main.mk
index 6560375..139fa46 100644
--- a/core/main.mk
+++ b/core/main.mk
@@ -58,6 +58,8 @@ PWD := $(shell pwd)
TOP := .
TOPDIR :=
+TOOLCHAIN_DIR := $(TOPDIR)toolchain
+
BUILD_SYSTEM := $(TOPDIR)build/core
# This is the default target. It must be the first declared target.
@@ -1008,8 +1010,17 @@ clean:
@rm -rf $(OUT_DIR)/*
@echo -e ${CL_GRN}"Entire build directory removed."${CL_RST}
+.PHONY: tcclean
+tcclean:
+ @rm -rf $(TOOLCHAIN_DIR)/clang
+ @rm -rf $(TOOLCHAIN_DIR)/gcc
+ @rm -rf $(TOOLCHAIN_DIR)/headers
+ @rm -rf $(TOOLCHAIN_DIR)/jack_jill
+ @echo -e ${CL_GRN}"All toolchain build directories removed."${CL_RST}
+
+
.PHONY: clobber
-clobber: clean
+clobber: clean tcclean
# The rules for dataclean and installclean are defined in cleanbuild.mk.