From 6e59a2562a5eea825ec812fd453b6cd190ae61dd Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Wed, 8 Dec 1999 18:10:15 +0000 Subject: [PATCH] Oops! bypassing Makefile.inc0 without adding a `world' target is not a good idea. Adding `world' to Makefile is save, because all hairy bits are in Makefile.inc1 anyway. --- Makefile | 39 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b5e21270eda1..f70768f35409 100644 --- a/Makefile +++ b/Makefile @@ -83,18 +83,53 @@ TGTS = afterdistribute all buildworld checkdpadd clean cleandepend cleandir \ depend distribute everything hierarchy includes install installmost \ installworld lint maninstall mk most obj objlink regress rerelease \ - tags update world + tags update + +MAKE= make -m ${.CURDIR}/share/mk -f Makefile.inc1 # # Handle the user-driven targets, using the source relative mk files. # ${TGTS} : upgrade_checks @cd ${.CURDIR}; \ - ${MAKE} -f Makefile.inc1 -m ${.CURDIR}/share/mk ${.TARGET} + ${MAKE} ${.TARGET} # Set a reasonable default .MAIN: all +STARTTIME!= LC_TIME=C date +# +# world +# +# Attempt to rebuild and reinstall *everything*, with reasonable chance of +# success, regardless of how old your existing system is. +# +world: upgrade_checks + @echo "--------------------------------------------------------------" + @echo ">>> ${OBJFORMAT} make world started on ${STARTTIME}" + @echo "--------------------------------------------------------------" +.if target(pre-world) + @echo + @echo "--------------------------------------------------------------" + @echo ">>> Making 'pre-world' target" + @echo "--------------------------------------------------------------" + @cd ${.CURDIR}; ${MAKE} pre-world +.endif + @cd ${.CURDIR}; ${MAKE} buildworld + @cd ${.CURDIR}; ${MAKE} -B installworld +.if target(post-world) + @echo + @echo "--------------------------------------------------------------" + @echo ">>> Making 'post-world' target" + @echo "--------------------------------------------------------------" + @cd ${.CURDIR}; ${MAKE} post-world +.endif + @echo + @echo "--------------------------------------------------------------" + @echo ">>> ${OBJFORMAT} make world started on ${STARTTIME}" + @echo ">>> ${OBJFORMAT} make world completed on `LC_TIME=C date`" + @echo "--------------------------------------------------------------" + # # Perform a few tests to determine if the installed tools are adequate # for building the world. These are for older systems (prior to 2.2.5).