diff options
author | jkh <jkh@FreeBSD.org> | 1996-06-20 18:47:04 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-06-20 18:47:04 +0000 |
commit | 1c3c6e69aad47229341ab69d33ca6a0aace4ec1a (patch) | |
tree | 7c920f1e23caced04225fd448d89153dbd473f65 /Makefile | |
parent | e8d26b1581dab3026009757a94a8134f0fd851ae (diff) | |
download | FreeBSD-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-- | Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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: |