summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>1999-12-08 18:10:15 +0000
committermarcel <marcel@FreeBSD.org>1999-12-08 18:10:15 +0000
commit76438b69a908407ecaaa4c661c48496beade0809 (patch)
treea539dd66c00782281bbe83f6b0474d1dca79f70f /Makefile
parentcdf669dd0c4c5349e23a6a7b332274e7ce22ed95 (diff)
downloadFreeBSD-src-76438b69a908407ecaaa4c661c48496beade0809.zip
FreeBSD-src-76438b69a908407ecaaa4c661c48496beade0809.tar.gz
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile39
1 files changed, 37 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index b5e2127..f70768f 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).
OpenPOWER on IntegriCloud