aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>1999-12-08 18:10:15 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>1999-12-08 18:10:15 +0000
commit6e59a2562a5eea825ec812fd453b6cd190ae61dd (patch)
tree5209c3dace0cb2f27798969c749d7ac46e77f0ed /Makefile
parent64ae346b521983a6fc2f72b795b5c8ae101ddac1 (diff)
downloadsrc-6e59a2562a5eea825ec812fd453b6cd190ae61dd.tar.gz
src-6e59a2562a5eea825ec812fd453b6cd190ae61dd.zip
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.
Notes
Notes: svn path=/head/; revision=54324
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile39
1 files 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).