Date: Mon, 15 Jul 1996 15:51:29 -0600 From: Warner Losh <imp@village.org> To: hackers@freebsd.org Subject: make world suggestion Message-ID: <199607152151.PAA17312@rover.village.org>
next in thread | raw e-mail | index | archive | help
Right now the Makefile looks like:
...
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
cd ${.CURDIR} && ${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`"
...
However, it is often times nice to have something that I can do to
rebuild the world when I know that it is safe to do so. Sure, I can
just do a make depend all install followed by a makedb, but wouldn't
it be nicer if there was a rebuild target? The above would look like:
...
world: pre-world hierarchy mk $(WORLD_CLEANDIST) bootstrap include-tools includes lib-tools libraries build-tools rebuild
.if target(post-world)
cd ${.CURDIR} && ${MAKE} post-world
.endif
@echo "make world completed on `date`"
rebuild:
@echo "--------------------------------------------------------------"
@echo " Rebuilding ${DESTDIR} The whole thing"
@echo "--------------------------------------------------------------"
@echo
cd ${.CURDIR} && ${MAKE} depend all install
cd ${.CURDIR}/share/man && ${MAKE} makedb
...
Comments?
Warner
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607152151.PAA17312>
