[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.118 and 1.134

version 1.118, 2000/06/20 06:00:24 version 1.134, 2001/10/08 23:42:21
Line 24 
Line 24 
 #   MKSHARE, if set to `no', will prevent building and installing  #   MKSHARE, if set to `no', will prevent building and installing
 #       anything in /usr/share.  #       anything in /usr/share.
 #   NBUILDJOBS is the number of jobs to start in parallel during a  #   NBUILDJOBS is the number of jobs to start in parallel during a
 #       'make build'. It defaults to 1.  #       `make build'. It defaults to 1.
 #   UPDATE will avoid a `make cleandir' at the start of `make build',  #   UPDATE, if defined, will avoid a `make cleandir' at the start of
 #       as well as having the effects listed in /usr/share/mk/bsd.README.  #     `make build', as well as having the effects listed in
   #     /usr/share/mk/bsd.README.
   #   NOCLEANDIR, if defined, will avoid a `make cleandir' at the start
   #     of the `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
Line 35 
Line 40 
 #       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.  #   snapshot: a synonym for release.
   #
   # Sub targets of `make build,' in order:
   #   buildstartmsg: displays the start time of the build.
   #   do-make-tools: builds host toolchain.
   #   do-distrib-dirs: creates the distribution directories.
   #   do-force-domestic: check's that FORCE_DOMESTIC isn't set (deprecated.)
   #   do-cleandir: cleans the tree.
   #   do-make-obj: creates object directories if required.
   #   do-make-includes: install include files.
   #   do-lib-csu: build & install startup object files.
   #   do-lib: build & install system libraries.
   #   do-gnu-lib: build & install gnu system libraries.
   #   do-dependall: builds & install the entire system.
   #   do-domestic: build & install the domestic tree (deprecated.)
   #   do-whatisdb: build & install the `whatis.db' man database.
   #   buildendmsg: displays the end time of the build.
   
 .include <bsd.own.mk>  .include "${.CURDIR}/share/mk/bsd.own.mk"
   
 MKOBJDIRS ?= no  MKOBJDIRS ?= no
 HAVE_EGCS!=     ${CXX} --version | egrep "^(2\.[89]|egcs)" ; echo  
   
 .if defined(NBUILDJOBS)  .if defined(NBUILDJOBS)
 _J= -j${NBUILDJOBS}  _J= -j${NBUILDJOBS}
 .endif  .endif
   
 .if defined(DESTDIR)  
 _M=-m ${DESTDIR}/usr/share/mk  
 .endif  
   
 # NOTE THAT etc *DOES NOT* BELONG IN THE LIST BELOW  # NOTE THAT etc *DOES NOT* BELONG IN THE LIST BELOW
   
 SUBDIR+= lib include bin libexec sbin usr.bin usr.sbin share sys  SUBDIR+= lib include bin libexec sbin usr.bin usr.sbin share sys
 .if make(obj)  .if make(cleandir) || make(obj)
 SUBDIR+= distrib  SUBDIR+= distrib tools
 .ifdef MAKEOBJDIRPREFIX  .ifdef MAKEOBJDIRPREFIX
 SUBDIR+= etc  SUBDIR+= etc
 .endif  .endif
Line 79  regression-tests:
Line 95  regression-tests:
         @(cd ${.CURDIR}/regress && ${MAKE} ${_M} regress)          @(cd ${.CURDIR}/regress && ${MAKE} ${_M} regress)
 .endif  .endif
   
 buildmsg:  buildstartmsg:
         @echo -n "Build started at: "          @echo -n "Build started at: "
         @date          @date
   
 beforeinstall:  buildendmsg:
 .ifndef NODISTRIBDIRS          @echo -n "Build finished at: "
 .ifndef DESTDIR          @date
         (cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs)  
 .else  
         (cd ${.CURDIR}/etc && ${MAKE} distrib-dirs)  
 .endif  
 .endif  
   
 afterinstall:  afterinstall:
 .if ${MKMAN} != "no" && !defined(_BUILD)  .if ${MKMAN} != "no" && !defined(_BUILD)
Line 107  whatis.db:
Line 118  whatis.db:
 build:  build:
         @echo "Build installed into ${DESTDIR}"          @echo "Build installed into ${DESTDIR}"
 .else  .else
 build: buildmsg beforeinstall  build:
           @${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
   
   do-make-tools:
   .if ${USETOOLS} != "no"
   .if ${MKOBJDIRS} != "no"
           cd ${.CURDIR}/tools && ${MAKE} ${_M} obj
   .endif
           cd ${.CURDIR}/tools && ${MAKE} ${_M} build
   .endif
   
   do-distrib-dirs:
   .ifndef NODISTRIBDIRS
   .ifndef DESTDIR
           (cd ${.CURDIR}/etc && ${MAKE} ${_M} DESTDIR=/ distrib-dirs)
   .else
           (cd ${.CURDIR}/etc && ${MAKE} ${_M} DESTDIR=${DESTDIR} distrib-dirs)
   .endif
   .endif
   
   do-force-domestic:
 .if defined(FORCE_DOMESTIC)  .if defined(FORCE_DOMESTIC)
         @echo '*** CAPUTE!'          @echo '*** CAPUTE!'
         @echo '    The FORCE_DOMESTIC flag is not compatible with "make build".'          @echo '    The FORCE_DOMESTIC flag is not compatible with "make build".'
         @echo '    Please correct the problem and try again.'          @echo '    Please correct the problem and try again.'
         @false          @false
 .endif  .endif
 .if ${MKSHARE} != "no"  
         (cd ${.CURDIR}/share/mk && ${MAKE} install)  do-cleandir:
 .endif  
 .if !defined(UPDATE) && !defined(NOCLEANDIR)  .if !defined(UPDATE) && !defined(NOCLEANDIR)
         ${MAKE} ${_J} ${_M} cleandir          ${MAKE} ${_J} ${_M} cleandir
 .endif  .endif
   
   do-make-obj:
 .if ${MKOBJDIRS} != "no"  .if ${MKOBJDIRS} != "no"
         ${MAKE} ${_M} obj          ${MAKE} ${_J} ${_M} obj
 .endif  
 .if empty(HAVE_EGCS)  
 .if defined(DESTDIR)  
         @echo "*** CAPUTE!"  
         @echo "    You attempted to compile the world without egcs.  You must"  
         @echo "    first install a native egcs compiler."  
         @false  
 .else  
         (cd ${.CURDIR}/gnu/usr.bin/egcs && \  
             ${MAKE} ${_M} ${_J} dependall MKMAN=no && \  
             ${MAKE} ${_M} MKMAN=no install && ${MAKE} ${_M} cleandir)  
 .endif  
 .endif  .endif
   
   do-make-includes:
 .if !defined(NOINCLUDES)  .if !defined(NOINCLUDES)
         ${MAKE} ${_M} includes          ${MAKE} ${_M} includes
 .endif  .endif
   
   do-lib-csu:
         (cd ${.CURDIR}/lib/csu && \          (cd ${.CURDIR}/lib/csu && \
             ${MAKE} ${_M} ${_J} MKSHARE=no dependall && \              ${MAKE} ${_M} ${_J} MKSHARE=no dependall && \
             ${MAKE} ${_M} MKSHARE=no install)              ${MAKE} ${_M} MKSHARE=no install)
   
   do-lib:
         (cd ${.CURDIR}/lib && \          (cd ${.CURDIR}/lib && \
             ${MAKE} ${_M} ${_J} MKSHARE=no dependall && \              ${MAKE} ${_M} ${_J} MKSHARE=no dependall && \
             ${MAKE} ${_M} MKSHARE=no install)              ${MAKE} ${_M} MKSHARE=no install)
   
   do-gnu-lib:
         (cd ${.CURDIR}/gnu/lib && \          (cd ${.CURDIR}/gnu/lib && \
             ${MAKE} ${_M} ${_J} MKSHARE=no dependall && \              ${MAKE} ${_M} ${_J} MKSHARE=no dependall && \
             ${MAKE} ${_M} MKSHARE=no install)              ${MAKE} ${_M} MKSHARE=no install)
   
   do-dependall:
         ${MAKE} ${_M} ${_J} dependall && ${MAKE} ${_M} _BUILD= install          ${MAKE} ${_M} ${_J} dependall && ${MAKE} ${_M} _BUILD= install
   
   do-domestic:
 .if defined(DOMESTIC) && !defined(EXPORTABLE_SYSTEM)  .if defined(DOMESTIC) && !defined(EXPORTABLE_SYSTEM)
         (cd ${.CURDIR}/${DOMESTIC} && ${MAKE} ${_M} ${_J} _SLAVE_BUILD= build)          (cd ${.CURDIR}/${DOMESTIC} && ${MAKE} ${_M} ${_J} _SLAVE_BUILD= build)
 .endif  .endif
   
   do-whatisdb:
         ${MAKE} ${_M} whatis.db          ${MAKE} ${_M} whatis.db
         @echo -n "Build finished at: "  
         @date  
 .endif  
   
 release snapshot: build  release snapshot: build
         (cd ${.CURDIR}/etc && ${MAKE} ${_M} INSTALL_DONE=1 release)          (cd ${.CURDIR}/etc && ${MAKE} ${_M} INSTALL_DONE=1 release)
   
 .include <bsd.subdir.mk>  # Speedup stubs for some subtrees that don't need to run these rules
   includes-bin includes-games includes-libexec includes-regress \
   includes-sbin includes-usr.sbin:
           @${TRUE}
   
   .if !exists(${.CURDIR}/share/mk)
   .BEGIN:
           @echo 'BUILD ABORTED: share/mk does not exist, cannot run make.'
           @false
   .endif
   
   .include "${.CURDIR}/share/mk/bsd.subdir.mk"
   
   _M:=    -m ${.CURDIR}/share/mk

Legend:
Removed from v.1.118  
changed lines
  Added in v.1.134

CVSweb <webmaster@jp.NetBSD.org>