summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2016-02-08 12:30:31 (GMT)
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-01-02 17:17:06 (GMT)
commit3d95a43d1f723c9b3cf010cd82e5311005980233 (patch)
tree86ca919d61ccfa6ec5c05e27c5d31ed9dbedf699
parent9d59159225012590821e7acf7c25f7b2b0f0092a (diff)
downloadbuild-3d95a43d1f723c9b3cf010cd82e5311005980233.zip
build-3d95a43d1f723c9b3cf010cd82e5311005980233.tar.gz
build-3d95a43d1f723c9b3cf010cd82e5311005980233.tar.bz2
add tcclean target to remove all toolchain build dirs
Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
-rw-r--r--core/main.mk13
1 files changed, 12 insertions, 1 deletions
diff --git a/core/main.mk b/core/main.mk
index e2a1e34..2caf3d2 100644
--- a/core/main.mk
+++ b/core/main.mk
@@ -1006,8 +1006,19 @@ clean:
@rm -rf $(OUT_DIR)/*
@echo -e ${CL_GRN}"Entire build directory removed."${CL_RST}
+.PHONY: tcclean
+tcclean:
+ @cd toolchain
+ @rm -rf clang
+ @rm -rf gcc
+ @rm -rf headers
+ @rm -rf jack_jill
+ @cd ..
+ @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.