aboutsummaryrefslogtreecommitdiff
path: root/gcc/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/Makefile.in')
-rw-r--r--gcc/Makefile.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index 19e0d93..de573ca8 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -3423,6 +3423,18 @@ fsf-funding.pod: funding.texi
-$(TEXI2POD) $< > $@
#
+# clean-target removes all files made by compilation.
+# This can be added to over time.
+
+clean-target: clean-target-libgcc
+
+clean-target-libgcc:
+ test ! -d libgcc || \
+ (cd libgcc && find . -type d -print) | \
+ while read d; do rm -f $$d/libgcc.a || : ; done
+ test ! -d libgcc || rm -r libgcc
+ test ! -f stmp-dirs || rm stmp-dirs
+
# Deletion of files made during compilation.
# There are four levels of this:
# `mostlyclean', `clean', `distclean' and `maintainer-clean'.