From owner-freebsd-hackers Mon Jul 15 14:51:40 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id OAA19622 for hackers-outgoing; Mon, 15 Jul 1996 14:51:40 -0700 (PDT) Received: from rover.village.org (rover.village.org [204.144.255.49]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id OAA19608 for ; Mon, 15 Jul 1996 14:51:32 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by rover.village.org (8.7.5/8.6.6) with SMTP id PAA17312 for ; Mon, 15 Jul 1996 15:51:29 -0600 (MDT) Message-Id: <199607152151.PAA17312@rover.village.org> To: hackers@freebsd.org Subject: make world suggestion Date: Mon, 15 Jul 1996 15:51:29 -0600 From: Warner Losh Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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