From ac08bc0c4ab12ddcb196e20ea31ee4ff8d882e67 Mon Sep 17 00:00:00 2001 From: Garrett Wollman Date: Sat, 15 Oct 1994 21:19:56 +0000 Subject: [PATCH] For those who want a little more control over their build process... Added two new targets, `most' and `mostinstall', which compile and install (respectively) just the binaries from just the ``core'' parts of the system. This makes it easier to do something like the following (which I do): # cd /usr/src # make obj depend (scrutinize make output) # make most # make mostinstall ...which will not confuse things by installing new libraries, /usr/share, games, gcc (two extra times), and so on. Obviously, if you do this, then you have to be careful to watch for changes in include files and make macros, and do the appropriate thing in those cases. (It usually still doesn't involve building GCC three times or libc six.) --- Makefile | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1451b66aff8..07494a490f2 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ # -# $Id: Makefile,v 1.25 1994/10/08 15:08:14 ache Exp $ +# $Id: Makefile,v 1.26 1994/10/11 23:33:00 ache Exp $ # # Make command line options: # -DCLOBBER will remove /usr/include and MOST of /usr/lib @@ -152,6 +152,42 @@ cleandist: ${MAKE} obj .endif +installmost: + @echo "--------------------------------------------------------------" + @echo " Installing programs only" + @echo "--------------------------------------------------------------" + cd ${.CURDIR}/bin && ${MAKE} ${.MAKEFLAGS} install + cd ${.CURDIR}/sbin && ${MAKE} ${.MAKEFLAGS} install + cd ${.CURDIR}/libexec && ${MAKE} ${.MAKEFLAGS} install + cd ${.CURDIR}/usr.bin && ${MAKE} ${.MAKEFLAGS} install + cd ${.CURDIR}/usr.sbin && ${MAKE} ${.MAKEFLAGS} install + cd ${.CURDIR}/gnu/libexec && ${MAKE} ${.MAKEFLAGS} install + cd ${.CURDIR}/gnu/usr.bin && ${MAKE} ${.MAKEFLAGS} install +#.if defined(MAKE_EBONES) && !defined(NOCRYPT) +# cd ${.CURDIR}/eBones && ${MAKE} ${.MAKEFLAGS} installmost +#.endif +#.if !defined(NOSECURE) && !defined(NOCRYPT) +# cd ${.CURDIR}/secure && ${MAKE} ${.MAKEFLAGS} installmost +#.endif + +most: + @echo "--------------------------------------------------------------" + @echo " Building programs only" + @echo "--------------------------------------------------------------" + cd ${.CURDIR}/bin && ${MAKE} ${.MAKEFLAGS} all + cd ${.CURDIR}/sbin && ${MAKE} ${.MAKEFLAGS} all + cd ${.CURDIR}/libexec && ${MAKE} ${.MAKEFLAGS} all + cd ${.CURDIR}/usr.bin && ${MAKE} ${.MAKEFLAGS} all + cd ${.CURDIR}/usr.sbin && ${MAKE} ${.MAKEFLAGS} all + cd ${.CURDIR}/gnu/libexec && ${MAKE} ${.MAKEFLAGS} all + cd ${.CURDIR}/gnu/usr.bin && ${MAKE} ${.MAKEFLAGS} all +#.if defined(MAKE_EBONES) && !defined(NOCRYPT) +# cd ${.CURDIR}/eBones && ${MAKE} ${.MAKEFLAGS} most +#.endif +#.if !defined(NOSECURE) && !defined(NOCRYPT) +# cd ${.CURDIR}/secure && ${MAKE} ${.MAKEFLAGS} most +#.endif + mk: @echo "--------------------------------------------------------------" @echo " Rebuilding ${DESTDIR}/usr/share/mk"