Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/Makefile,v rcsdiff: /ftp/cvs/cvsroot/src/Makefile,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.137 retrieving revision 1.144 diff -u -p -r1.137 -r1.144 --- src/Makefile 2001/10/19 02:35:45 1.137 +++ src/Makefile 2001/10/29 19:48:35 1.144 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.137 2001/10/19 02:35:45 tv Exp $ +# $NetBSD: Makefile,v 1.144 2001/10/29 19:48:35 tv Exp $ # This is the top-level makefile for building NetBSD. For an outline of # how to build a snapshot or release, as well as other release engineering @@ -49,6 +49,9 @@ # do-make-tools: builds host toolchain. # do-distrib-dirs: creates the distribution directories. # includes: installs include files. +# do-lib-csu: builds and installs prerequisites from lib/csu. +# do-lib: builds and installs prerequisites from lib. +# do-gnu-lib: builds and installs prerequisites from gnu/lib. # do-build: builds and installs the entire system. .include "${.CURDIR}/share/mk/bsd.own.mk" @@ -70,7 +73,7 @@ _J= -j${NBUILDJOBS} .endif -.if ${USETOOLS} != "no" +.if ${USETOOLS} == "yes" _SUBDIR+= tools .endif _SUBDIR+= lib include gnu bin games libexec sbin usr.bin \ @@ -104,7 +107,7 @@ BUILDTARGETS+= obj .if !defined(UPDATE) && !defined(NOCLEANDIR) BUILDTARGETS+= cleandir .endif -.if ${USETOOLS} != "no" +.if ${USETOOLS} == "yes" BUILDTARGETS+= do-make-tools .endif .if !defined(NODISTRIBDIRS) @@ -113,7 +116,7 @@ BUILDTARGETS+= do-distrib-dirs .if !defined(NOINCLUDES) BUILDTARGETS+= includes .endif -BUILDTARGETS+= do-build +BUILDTARGETS+= do-lib-csu do-lib do-gnu-lib do-build # Enforce proper ordering of some rules. @@ -145,13 +148,15 @@ do-make-tools: do-distrib-dirs: cd ${.CURDIR}/etc && ${MAKE} ${_M} DESTDIR=${DESTDIR} distrib-dirs -do-build: .for dir in lib/csu lib gnu/lib +do-${dir:S/\//-/}: .for targ in dependall install cd ${.CURDIR}/${dir} && \ ${MAKE} ${_M} ${_J} MKSHARE=no MKLINT=no ${targ} .endfor .endfor + +do-build: ${MAKE} ${_M} ${_J} dependall ${MAKE} ${_M} ${_J} install @@ -160,9 +165,25 @@ do-build: includes-bin includes-games includes-libexec includes-regress \ includes-sbin includes-usr.sbin includes-tools \ -all-tools install-tools install-regress: +dependall-tools depend-tools all-tools install-tools install-regress \ +dependall-distrib depend-distrib all-distrib install-distrib includes-distrib: @true .include "${.CURDIR}/share/mk/bsd.subdir.mk" _M:= -m ${.CURDIR}/share/mk + +# Rules for building the BUILDING.* documentation files. + +build-docs: ${.CURDIR}/BUILDING.txt ${.CURDIR}/BUILDING.html + +.SUFFIXES: .mdoc .html .txt + +.mdoc.html: ${.CURDIR}/Makefile + groff -mdoc2html -Tlatin1 -P-b -P-u -P-o -ww -mtty-char $< >$@ + +# The awk expression changes line endings from LF to CR-LF to make +# this readable on many more platforms than just Un*x. +.mdoc.txt: ${.CURDIR}/Makefile + groff -mdoc -Tascii -P-b -P-u -P-o $< | \ + awk 'BEGIN{ORS="\r\n"}{print}' >$@