aboutsummaryrefslogtreecommitdiff
path: root/Makefile.tpl
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2006-11-14 23:26:39 +0000
committerDJ Delorie <dj@redhat.com>2006-11-14 23:26:39 +0000
commit9dbaa84237a7854d05d6e1a8e9c1492647419beb (patch)
tree820269ca0ca58c65d41c1b90a8282a27dfa4c661 /Makefile.tpl
parent866dcbf333e17c490ccef992235ccf3268f2bccf (diff)
downloadgdb-9dbaa84237a7854d05d6e1a8e9c1492647419beb.zip
gdb-9dbaa84237a7854d05d6e1a8e9c1492647419beb.tar.gz
gdb-9dbaa84237a7854d05d6e1a8e9c1492647419beb.tar.bz2
* Makefile.tpl (clean-stage*): Sync with GCC (clean).
* Makefile.in: Sync with GCC. * configure.in: Sync with GCC (mpfr, gmp). * configure: Sync with GCC.
Diffstat (limited to 'Makefile.tpl')
-rw-r--r--Makefile.tpl9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile.tpl b/Makefile.tpl
index 045c6db..5ce38ab 100644
--- a/Makefile.tpl
+++ b/Makefile.tpl
@@ -854,9 +854,12 @@ all-stage[+id+]-[+prefix+][+module+]: configure-stage[+id+]-[+prefix+][+module+]
maybe-clean-stage[+id+]-[+prefix+][+module+]: clean-stage[+id+]-[+prefix+][+module+]
clean-stage[+id+]: clean-stage[+id+]-[+prefix+][+module+]
clean-stage[+id+]-[+prefix+][+module+]:
- @[ -f [+subdir+]/[+module+]/Makefile ] || [ -f [+subdir+]/stage[+id+]-[+module+]/Makefile ] \
- || exit 0 ; \
- [ $(current_stage) = stage[+id+] ] || $(MAKE) stage[+id+]-start; \
+ @if [ $(current_stage) = stage[+id+] ]; then \
+ [ -f [+subdir+]/[+module+]/Makefile ] || exit 0; \
+ else \
+ [ -f [+subdir+]/stage[+id+]-[+module+]/Makefile ] || exit 0; \
+ $(MAKE) stage[+id+]-start; \
+ fi; \
cd [+subdir+]/[+module+] && \
$(MAKE) [+args+] [+ IF prev +] \
[+poststage1_args+] [+ ENDIF prev +] \