summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Roth <gaumless@gmail.com>2015-06-21 13:05:03 -0600
committerMartin Roth <gaumless@gmail.com>2015-06-24 06:04:22 +0200
commit32c965170512a62659f54fe46d53117a847f97f3 (patch)
treee39fa25585fb8ed260291c110b700783720d9c9e
parentc4dd3e02121f113483acb983899f8cdea3998e19 (diff)
downloadcoreboot-32c965170512a62659f54fe46d53117a847f97f3.tar.xz
crossgcc/Makefile: clean more, add distclean target
Update the clean target to remove the intermediate files. These should get removed automatically, but if the build stops in the middle, or if the -t command is used for buildgcc, they can be left in the directory. Add a distclean target that removes the downloaded tarballs as well as everything else. Change-Id: I6ea19e7a499b0c313c1d2eff7e36386204ec834e Signed-off-by: Martin Roth <gaumless@gmail.com> Reviewed-on: http://review.coreboot.org/10621 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones <marc.jones@se-eng.com>
-rw-r--r--util/crossgcc/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/util/crossgcc/Makefile b/util/crossgcc/Makefile
index d0ab28aad3..2104a8954a 100644
--- a/util/crossgcc/Makefile
+++ b/util/crossgcc/Makefile
@@ -44,5 +44,13 @@ build-riscv-without-gdb:
clean:
rm -rf xgcc
+ rm -rf build-*
+ rm -rf binutils-* gcc-* gmp-* libelf-* mpc-* mpfr-*
+ rm -rf llvm-* clang-tools-* cfe-* compiler-rt-*
+ rm -rf acpica-*
+ rm -rf gdb-*
-.PHONY: all build clean
+distclean: clean
+ rm -rf tarballs
+
+.PHONY: all build clean distclean