Lines Matching refs:stage

799 .PHONY: configure-stage[+id+]-[+prefix+][+module+] maybe-configure-stage[+id+]-[+prefix+][+module+]
800 maybe-configure-stage[+id+]-[+prefix+][+module+]:
802 maybe-configure-stage[+id+]-[+prefix+][+module+]: configure-stage[+id+]-[+prefix+][+module+]
803 configure-stage[+id+]-[+prefix+][+module+]:
804 @[ $(current_stage) = stage[+id+] ] || $(MAKE) stage[+id+]-start
826 echo Configuring stage [+id+] in [+subdir+]/[+module+] ; \
867 .PHONY: all-stage[+id+]-[+prefix+][+module+] maybe-all-stage[+id+]-[+prefix+][+module+]
868 .PHONY: clean-stage[+id+]-[+prefix+][+module+] maybe-clean-stage[+id+]-[+prefix+][+module+]
869 maybe-all-stage[+id+]-[+prefix+][+module+]:
870 maybe-clean-stage[+id+]-[+prefix+][+module+]:
872 maybe-all-stage[+id+]-[+prefix+][+module+]: all-stage[+id+]-[+prefix+][+module+]
873 all-stage[+id+]: all-stage[+id+]-[+prefix+][+module+]
874 TARGET-stage[+id+]-[+prefix+][+module+] = $(TARGET-[+prefix+][+module+])
875 all-stage[+id+]-[+prefix+][+module+]: configure-stage[+id+]-[+prefix+][+module+]
876 @[ $(current_stage) = stage[+id+] ] || $(MAKE) stage[+id+]-start
886 $(TARGET-stage[+id+]-[+prefix+][+module+])
888 maybe-clean-stage[+id+]-[+prefix+][+module+]: clean-stage[+id+]-[+prefix+][+module+]
889 clean-stage[+id+]: clean-stage[+id+]-[+prefix+][+module+]
890 clean-stage[+id+]-[+prefix+][+module+]:
891 @if [ $(current_stage) = stage[+id+] ]; then \
894 [ -f [+subdir+]/stage[+id+]-[+module+]/Makefile ] || exit 0; \
895 $(MAKE) stage[+id+]-start; \
1191 # We track the current stage (the one in 'gcc') in the stage_current file.
1192 # stage_last instead tracks the stage that was built last. These targets
1195 # While making host and target tools, symlinks to the final stage must be
1202 stage = :
1207 stage = if [ -f stage_current ]; then $(MAKE) `cat stage_current`-end || exit 1; else :; fi
1211 .PHONY: unstage stage
1214 stage:
1215 @: $(MAKE); $(stage)
1225 # the previous stage to a constant name ('prev-gcc'), and to make the name of
1237 [+ FOR bootstrap-stage +]
1238 .PHONY: stage[+id+]-start stage[+id+]-end
1240 stage[+id+]-start::
1241 @: $(MAKE); $(stage); \
1242 echo stage[+id+] > stage_current ; \
1243 echo stage[+id+] > stage_last; \
1247 @cd $(HOST_SUBDIR); [ -d stage[+id+]-[+module+] ] || \
1248 mkdir stage[+id+]-[+module+]; \
1249 mv stage[+id+]-[+module+] [+module+] [+ IF prev +] ; \
1250 mv stage[+prev+]-[+module+] prev-[+module+] || test -f stage[+prev+]-lean [+ ENDIF prev +]
1252 @[ -d stage[+id+]-$(TARGET_SUBDIR) ] || \
1253 mkdir stage[+id+]-$(TARGET_SUBDIR); \
1254 mv stage[+id+]-$(TARGET_SUBDIR) $(TARGET_SUBDIR) [+ IF prev +] ; \
1255 mv stage[+prev+]-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage[+prev+]-lean [+ ENDIF prev +]
1257 stage[+id+]-end:: [+ FOR host_modules +][+ IF bootstrap +]
1260 cd $(HOST_SUBDIR); mv [+module+] stage[+id+]-[+module+] [+ IF prev +]; \
1261 mv prev-[+module+] stage[+prev+]-[+module+] ; : [+ ENDIF prev +] ; \
1265 mv $(TARGET_SUBDIR) stage[+id+]-$(TARGET_SUBDIR) [+ IF prev +] ; \
1266 mv prev-$(TARGET_SUBDIR) stage[+prev+]-$(TARGET_SUBDIR) ; : [+ ENDIF prev +] ; \
1270 # Bubble a bug fix through all the stages up to stage [+id+]. They are
1271 # remade, but not reconfigured. The next stage (if any) will not be
1273 .PHONY: stage[+id+]-bubble
1274 stage[+id+]-bubble:: [+ IF prev +]stage[+prev+]-bubble[+ ENDIF +]
1277 if test -f stage[+id+]-lean [+
1278 IF prev +]|| test -f stage[+prev+]-lean [+ ENDIF prev +] ; then \
1279 echo Skipping rebuild of stage[+id+] ; \
1281 $(MAKE) stage[+id+]-start; \[+IF lean +]
1283 rm -rf stage[+lean+]-* ; \
1284 $(STAMP) stage[+lean+]-lean ; \
1286 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage[+id+]; \
1290 .PHONY: all-stage[+id+] clean-stage[+id+]
1291 do-clean: clean-stage[+id+]
1300 if test -f stage[+prev+]-lean; then \
1301 echo Cannot compare object files as stage [+prev+] was deleted. ; \
1304 : $(MAKE); $(stage); \
1307 cd stage[+id+]-gcc; \
1311 f1=$$r/stage[+prev+]-gcc/$$file; f2=$$r/stage[+id+]-gcc/$$file; \
1331 rm -rf stage[+prev+]-*; \
1332 $(STAMP) stage[+prev+]-lean; \
1339 echo stage[+id+] > stage_final
1342 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage[+id+]-bubble
1349 echo stage[+id+] > stage_final
1352 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage[+id+]-bubble
1359 # Rules to wipe a stage and all the following ones, also used for cleanstrap
1360 [+ IF prev +]distclean-stage[+prev+]:: distclean-stage[+id+] [+ ENDIF prev +]
1361 .PHONY: distclean-stage[+id+]
1362 distclean-stage[+id+]::
1363 @: $(MAKE); $(stage)
1364 @test "`cat stage_last`" != stage[+id+] || rm -f stage_last
1365 rm -rf stage[+id+]-* [+
1371 echo stage[+id+] > stage_final
1374 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage[+id+]-bubble
1382 [+ ENDFOR bootstrap-stage +]
1412 @: $(MAKE); $(stage)
1413 rm -rf stage1-$(TARGET_SUBDIR) [+ FOR bootstrap-stage +][+ IF prev
1414 +]stage[+id+]-* [+ ENDIF prev +][+ ENDFOR bootstrap-stage +]
1425 configure-stage[+id+]-target-[+module+]: maybe-all-stage[+id+]-gcc[+
1472 ;; dep-stage builds a string for the prefix of a bootstrap stage.
1473 (define dep-stage (lambda ()
1475 "stage"
1523 [+ (make-dep (dep-stage) "") +][+
1527 [+ (make-dep (dep-stage) (dep-stage)) +][+
1558 configure-stage[+id+]-target-[+module+]: maybe-all-stage[+id+]-target-libgcc[+