This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Two files (gcc/Makefile and stage_last, the latter obviously my fault...) were assumed present.
I couldn't reproduce the "make clean actually makes all first" scenario.
Ok for 4.3?
What about 4.2?
2006-11-16 Paolo Bonzini <bonzini@gnu.org>
* Makefile.in (clean-target-libgcc): Test for gcc Makefile presence. (unstage): Test for stage_last presence.
Index: Makefile.tpl
===================================================================
--- Makefile.tpl (revision 118810)
+++ Makefile.tpl (working copy)
@@ -591,7 +591,7 @@ realclean: maintainer-clean
# Extra dependency for clean-target, owing to the mixed nature of gcc.
clean-target: clean-target-libgcc
clean-target-libgcc:
- test ! -d gcc || (cd gcc && $(MAKE) $@)
+ if test -f gcc/Makefile; then cd gcc && $(MAKE) $@; else :; fi
-unstage = [ -f stage_current ] || $(MAKE) `cat stage_last`-start
+unstage = if [ -f stage_last ]; then [ -f stage_current ] || $ (MAKE) `cat stage_last`-start || exit 1; else :; fi
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |