aboutsummaryrefslogtreecommitdiff
path: root/Makefile.tpl
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2005-11-29 12:31:26 +0000
committerBen Elliston <bje@gcc.gnu.org>2005-11-29 23:31:26 +1100
commit2f3bdde7946ffbe607c345bc30ab7248a16a9447 (patch)
tree500eb93ddd4927a614067b6fab5ab323a23de95c /Makefile.tpl
parent1e90e92f6dd9f7bc11abb6e8c116d5481b98fe36 (diff)
downloadgcc-2f3bdde7946ffbe607c345bc30ab7248a16a9447.zip
gcc-2f3bdde7946ffbe607c345bc30ab7248a16a9447.tar.gz
gcc-2f3bdde7946ffbe607c345bc30ab7248a16a9447.tar.bz2
Makefile.tpl (clean-target-libgcc): Invoke clean-target-libgcc from the gcc build directory.
* Makefile.tpl (clean-target-libgcc): Invoke clean-target-libgcc from the gcc build directory. * Makefile.in: Regenerate. gcc/ * Makefile.in (clean-target): Depend on clean-target-libgcc. (clean-target-libgcc): Import rule from the top-level Makefile.in. From-SVN: r107668
Diffstat (limited to 'Makefile.tpl')
-rw-r--r--Makefile.tpl8
1 files changed, 2 insertions, 6 deletions
diff --git a/Makefile.tpl b/Makefile.tpl
index c99ba5b..4f38d6c 100644
--- a/Makefile.tpl
+++ b/Makefile.tpl
@@ -839,14 +839,10 @@ maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
maintainer-clean: local-distclean
realclean: maintainer-clean
-# Extra dependency for clean-target, owing to the mixed nature of gcc
+# Extra dependency for clean-target, owing to the mixed nature of gcc.
clean-target: clean-target-libgcc
clean-target-libgcc:
- test ! -d gcc/libgcc || \
- (cd gcc/libgcc && find . -type d -print) | \
- while read d; do rm -f gcc/$$d/libgcc.a || : ; done
- -rm -rf gcc/libgcc
- -rm -f gcc/stmp-dirs
+ test ! -d gcc || (cd gcc && $(MAKE) $@)
# Check target.