From 16a34ebd54044a0c2f4c3886e85bc7408cf1a908 Mon Sep 17 00:00:00 2001 From: "Jordan K. Hubbard" Date: Thu, 20 Jun 1996 18:47:04 +0000 Subject: 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. --- Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ab0f051f2810..3d440f0d129a 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: -- cgit v1.2.3