aboutsummaryrefslogtreecommitdiff
path: root/Makefile.tpl
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2006-11-14 12:14:33 +0000
committerPaolo Bonzini <bonzini@gcc.gnu.org>2006-11-14 12:14:33 +0000
commit995a56972736cae67dc483021ac543d7e45f8bff (patch)
tree3dad0f556080d45d2d86d2076606b42e24d44c44 /Makefile.tpl
parent6e0b633f6c2b88355a66d77c956367730e67f783 (diff)
downloadgcc-995a56972736cae67dc483021ac543d7e45f8bff.zip
gcc-995a56972736cae67dc483021ac543d7e45f8bff.tar.gz
gcc-995a56972736cae67dc483021ac543d7e45f8bff.tar.bz2
Makefile.tpl (clean-stage*): Test separately for package/Makefile and stageN-package/Makefile.
2006-11-14 Paolo Bonzini <bonzini@gnu.org> * Makefile.tpl (clean-stage*): Test separately for package/Makefile and stageN-package/Makefile. * Makefile.in: Regenerated. From-SVN: r118810
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 +] \