[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/Makefile between version 1.131 and 1.145

version 1.131, 2001/09/22 12:30:13 version 1.145, 2001/10/30 17:59:10
Line 31 
Line 31 
 #   NOCLEANDIR, if defined, will avoid a `make cleandir' at the start  #   NOCLEANDIR, if defined, will avoid a `make cleandir' at the start
 #     of the `make build'.  #     of the `make build'.
 #   NOINCLUDES will avoid the `make includes' usually done by `make build'.  #   NOINCLUDES will avoid the `make includes' usually done by `make build'.
 #  #
 # Targets:  # Targets:
 #   build: builds a full release of netbsd in DESTDIR. If BUILD_DONE is  #   build:
   #       Builds a full release of NetBSD in DESTDIR.  If BUILD_DONE is
 #       set, this is an empty target.  #       set, this is an empty target.
 #   release: does a `make build,' and then tars up the DESTDIR files  #   release:
   #       Does a `make build,' and then tars up the DESTDIR files
 #       into RELEASEDIR, in release(7) format. (See etc/Makefile for  #       into RELEASEDIR, in release(7) format. (See etc/Makefile for
 #       more information on this.)  #       more information on this.)
 #   snapshot: a synonym for release.  #   regression-tests:
   #       Runs the regression tests in "regress" on this host.
 #  #
 # Sub targets of `make build,' in order:  # Targets invoked by `make build,' in order:
 #   buildstartmsg: displays the start time of the build.  #   obj:             creates object directories.
 #   do-make-tools: builds host toolchain.  #   cleandir:        cleans the tree.
   #   do-make-tools:   builds host toolchain.
 #   do-distrib-dirs: creates the distribution directories.  #   do-distrib-dirs: creates the distribution directories.
 #   do-force-domestic: check's that FORCE_DOMESTIC isn't set (deprecated.)  #   includes:        installs include files.
 #   do-cleandir: cleans the tree.  #   do-lib-csu:      builds and installs prerequisites from lib/csu.
 #   do-make-obj: creates object directories if required.  #   do-lib:          builds and installs prerequisites from lib.
 #   do-make-includes: install include files.  #   do-gnu-lib:      builds and installs prerequisites from gnu/lib.
 #   do-lib-csu: build & install startup object files.  #   do-build:        builds and installs the entire system.
 #   do-lib: build & install system libraries.  
 #   do-gnu-lib: build & install gnu system libraries.  .include "${.CURDIR}/share/mk/bsd.own.mk"
 #   do-dependall: builds & install the entire system.  
 #   do-domestic: build & install the domestic tree (deprecated.)  # Sanity check: make sure that "make build" is not invoked simultaneously
 #   do-whatisdb: build & install the `whatis.db' man database.  # with a standard recursive target.
 #   buildendmsg: displays the end time of the build.  
   .if make(build) || make(release) || make(snapshot)
 .include <bsd.own.mk>  .for targ in ${TARGETS:Nobj:Ncleandir}
   .if make(${targ}) && !target(.BEGIN)
           @echo 'BUILD ABORTED: "make build" and "make ${targ}" are mutually exclusive.'
 .if defined(NBUILDJOBS)  .if defined(NBUILDJOBS)
 _J= -j${NBUILDJOBS}  _J=             -j${NBUILDJOBS}
 .endif  .endif
   _SUBDIR+=       tools
 SUBDIR+= lib include bin libexec sbin usr.bin usr.sbin share sys  
 .if make(cleandir) || make(obj)  
 SUBDIR+= distrib  
 SUBDIR+= etc  
 .endif  .endif
   _SUBDIR+=       lib include gnu bin games libexec sbin usr.bin \
                   usr.sbin share sys etc distrib regress
 includes-lib: includes-include includes-sys  # Weed out directories that don't exist.
 .if exists(games)  .for dir in ${_SUBDIR}
 SUBDIR+= games  .if exists(${dir}/Makefile)
   SUBDIR+=        ${dir}
 .endif  .endif
 SUBDIR+= gnu  
 # This is needed for libstdc++ and gen-params.  
 includes-gnu: includes-include includes-sys  
 .if exists(regress)  .if exists(regress)
 .ifmake !(install)  
 SUBDIR+= regress  
 regression-tests:  regression-tests:
         @echo Running regression tests...          @echo Running regression tests...
         @(cd ${.CURDIR}/regress && ${MAKE} ${_M} regress)          @cd ${.CURDIR}/regress && ${MAKE} ${_M} regress
         @echo -n "Build started at: "  
         @echo -n "Build finished at: "  
 .if ${MKMAN} != "no" && !defined(_BUILD)  
         ${MAKE} ${_M} whatis.db  
 .endif  .endif
   .if ${MKMAN} != "no"
   afterinstall: whatis.db
 whatis.db:  whatis.db:
         (cd ${.CURDIR}/share/man && ${MAKE} ${_M} makedb)          cd ${.CURDIR}/share/man && ${MAKE} ${_M} makedb
 # wrt info/dir below:  It's safe to move this over top of /usr/share/info/dir,  # Targets (in order!) called by "make build".
 # as the build will automatically remove/replace the non-pkg entries there.  
 .if defined(BUILD_DONE)  .if ${MKOBJDIRS:Uno} != "no"
 build:  BUILDTARGETS+=  obj
         @echo "Build installed into ${DESTDIR}"  
         @${MAKE} ${_M} buildstartmsg  
         @${MAKE} ${_M} do-make-tools  
         @${MAKE} ${_M} do-distrib-dirs  
         @${MAKE} ${_M} do-force-domestic  
         @${MAKE} ${_M} do-cleandir  
         @${MAKE} ${_M} do-make-obj  
         @${MAKE} ${_M} do-make-includes  
         @${MAKE} ${_M} do-lib-csu  
         @${MAKE} ${_M} do-lib  
         @${MAKE} ${_M} do-gnu-lib  
         @${MAKE} ${_M} do-dependall  
         @${MAKE} ${_M} do-domestic  
         @${MAKE} ${_M} do-whatisdb  
         @${MAKE} ${_M} buildendmsg  
 .endif  .endif
   .if !defined(UPDATE) && !defined(NOCLEANDIR)
 do-make-tools:  BUILDTARGETS+=  cleandir
 .if ${MKOBJDIRS} != "no"  
         cd ${.CURDIR}/tools && ${MAKE} ${_M} obj  
 .endif  .endif
         cd ${.CURDIR}/tools && ${MAKE} ${_M} build  .if ${USETOOLS} == "yes"
   BUILDTARGETS+=  do-make-tools
 .ifndef DESTDIR  
         (cd ${.CURDIR}/etc && ${MAKE} ${_M} DESTDIR=/ distrib-dirs)  
         (cd ${.CURDIR}/etc && ${MAKE} ${_M} DESTDIR=${DESTDIR} distrib-dirs)  
 .endif  .endif
   .if !defined(NODISTRIBDIRS)
   BUILDTARGETS+=  do-distrib-dirs
 .endif  .endif
   .if !defined(NOINCLUDES)
 do-force-domestic:  BUILDTARGETS+=  includes
 .if defined(FORCE_DOMESTIC)  
         @echo '*** CAPUTE!'  
         @echo '    The FORCE_DOMESTIC flag is not compatible with "make build".'  
         @echo '    Please correct the problem and try again.'  
 .endif  .endif
   BUILDTARGETS+=  do-lib-csu do-lib do-gnu-lib do-build
 do-cleandir:  # Enforce proper ordering of some rules.
 .if !defined(UPDATE) && !defined(NOCLEANDIR)  
         ${MAKE} ${_J} ${_M} cleandir  
 do-make-obj:  .ORDER:         ${BUILDTARGETS}
 .if ${MKOBJDIRS} != "no"  includes-lib:   includes-include includes-sys
         ${MAKE} ${_J} ${_M} obj  includes-gnu:   includes-lib
 do-make-includes:  # Build the system and install into DESTDIR.
 .if !defined(NOINCLUDES)  
         ${MAKE} ${_M} includes  build:
   .if defined(BUILD_DONE)
           @echo "Build already installed into ${DESTDIR}"
           @echo -n "Build started at: " && date
   .for tgt in ${BUILDTARGETS}
           ${MAKE} ${_J} ${_M} ${tgt}
           @echo -n "Build finished at: " && date
 .endif  .endif
 do-lib-csu:  # Build a release or snapshot (implies "make build").
         (cd ${.CURDIR}/lib/csu && \  
             ${MAKE} ${_M} ${_J} MKSHARE=no dependall && \  
             ${MAKE} ${_M} MKSHARE=no install)  
 do-lib:  release snapshot: build
         (cd ${.CURDIR}/lib && \          cd ${.CURDIR}/etc && ${MAKE} ${_M} INSTALL_DONE=1 release
             ${MAKE} ${_M} ${_J} MKSHARE=no dependall && \  
             ${MAKE} ${_M} MKSHARE=no install)  
 do-gnu-lib:  # Special components of the "make build" process.
         (cd ${.CURDIR}/gnu/lib && \  
             ${MAKE} ${_M} ${_J} MKSHARE=no dependall && \  
             ${MAKE} ${_M} MKSHARE=no install)  
 do-dependall:  do-make-tools:
         ${MAKE} ${_M} ${_J} dependall && ${MAKE} ${_M} _BUILD= install          cd ${.CURDIR}/tools && ${MAKE} ${_M} build
 do-domestic:  do-distrib-dirs:
 .if defined(DOMESTIC) && !defined(EXPORTABLE_SYSTEM)          cd ${.CURDIR}/etc && ${MAKE} ${_M} DESTDIR=${DESTDIR} distrib-dirs
         (cd ${.CURDIR}/${DOMESTIC} && ${MAKE} ${_M} ${_J} _SLAVE_BUILD= build)  
 do-whatisdb:  .for dir in lib/csu lib gnu/lib
         ${MAKE} ${_M} whatis.db  do-${dir:S/\//-/}:
   .for targ in dependall install
           cd ${.CURDIR}/${dir} && \
                   ${MAKE} ${_M} ${_J} MKSHARE=no MKLINT=no ${targ}
           ${MAKE} ${_M} ${_J} dependall
           ${MAKE} ${_M} ${_J} install
 release snapshot: build  # Speedup stubs for some subtrees that don't need to run these rules.
         (cd ${.CURDIR}/etc && ${MAKE} ${_M} INSTALL_DONE=1 release)  # (Tells <bsd.subdir.mk> not to recurse for them.)
 # Speedup stubs for some subtrees that don't need to run these rules  
 includes-bin includes-games includes-libexec includes-regress \  includes-bin includes-games includes-libexec includes-regress \
 includes-sbin includes-usr.sbin:  includes-sbin includes-usr.sbin includes-tools \
         @${TRUE}  dependall-tools depend-tools all-tools install-tools install-regress \
   dependall-distrib depend-distrib all-distrib install-distrib includes-distrib:
 .if !exists(${.CURDIR}/share/mk)  .include "${.CURDIR}/share/mk/bsd.subdir.mk"
         @echo 'BUILD ABORTED: share/mk does not exist, cannot run make.'  
 .include <bsd.subdir.mk>  
 _M:=    -m ${.CURDIR}/share/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}' >$@

Removed from v.1.131  
changed lines
  Added in v.1.145

CVSweb <webmaster@jp.NetBSD.org>