summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2016-02-08 15:46:23 (GMT)
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-01-02 17:17:06 (GMT)
commit4088cf50b9aa407f40e6920fe3111a11144e1016 (patch)
treebc06d7415d8eb73fc8b7913c85d3450ea98e27c9
parent3d95a43d1f723c9b3cf010cd82e5311005980233 (diff)
downloadbuild-4088cf50b9aa407f40e6920fe3111a11144e1016.zip
build-4088cf50b9aa407f40e6920fe3111a11144e1016.tar.gz
build-4088cf50b9aa407f40e6920fe3111a11144e1016.tar.bz2
make tcclean target work
Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
-rw-r--r--core/main.mk12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/main.mk b/core/main.mk
index 2caf3d2..13c289e 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,12 +1010,10 @@ clean:
.PHONY: tcclean
tcclean:
- @cd toolchain
- @rm -rf clang
- @rm -rf gcc
- @rm -rf headers
- @rm -rf jack_jill
- @cd ..
+ @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}