summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-06-20 18:47:04 +0000
committerjkh <jkh@FreeBSD.org>1996-06-20 18:47:04 +0000
commit1c3c6e69aad47229341ab69d33ca6a0aace4ec1a (patch)
tree7c920f1e23caced04225fd448d89153dbd473f65 /Makefile
parente8d26b1581dab3026009757a94a8134f0fd851ae (diff)
downloadFreeBSD-src-1c3c6e69aad47229341ab69d33ca6a0aace4ec1a.zip
FreeBSD-src-1c3c6e69aad47229341ab69d33ca6a0aace4ec1a.tar.gz
Add pre-world and post-world hooks so that people can do site specific
cleanup or preinitializion of /usr/src before and after the world target is run.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ab0f051..3d440f0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
#
-# $Id: Makefile,v 1.81 1996/06/19 21:19:56 nate Exp $
+# $Id: Makefile,v 1.82 1996/06/20 13:38:15 adam Exp $
#
# Make command line options:
# -DCLOBBER will remove /usr/include
@@ -102,13 +102,21 @@ CLEANDIR= cleandir
MK_FLAGS= -DNOMAN -DNOPROFILE
-world: hierarchy mk $(WORLD_CLEANDIST) bootstrap include-tools includes lib-tools libraries build-tools
+.if !target(pre-world)
+pre-world:
+ @/usr/bin/true
+.endif
+
+world: pre-world hierarchy mk $(WORLD_CLEANDIST) bootstrap include-tools includes lib-tools libraries build-tools
@echo "--------------------------------------------------------------"
@echo " Rebuilding ${DESTDIR} The whole thing"
@echo "--------------------------------------------------------------"
@echo
${MAKE} depend all install
cd ${.CURDIR}/share/man && ${MAKE} makedb
+.if target(post-world)
+ cd ${.CURDIR} && ${MAKE} post-world
+.endif
@echo "make world completed on `date`"
bootstrap:
OpenPOWER on IntegriCloud