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

version 1.129, 2001/09/21 21:01:13 version 1.134, 2001/10/08 23:42:21
Line 43 
Line 43 
 #  #
 # Sub targets of `make build,' in order:  # Sub targets of `make build,' in order:
 #   buildstartmsg: displays the start time of the build.  #   buildstartmsg: displays the start time of the build.
 #   beforeinstall: creates the distribution directories.  #   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-force-domestic: check's that FORCE_DOMESTIC isn't set (deprecated.)
 #   do-share-mk: installs /usr/share/mk files.  
 #   do-cleandir: cleans the tree.  #   do-cleandir: cleans the tree.
 #   do-make-obj: creates object directories if required.  #   do-make-obj: creates object directories if required.
 #   do-make-tools: builds host toolchain.  
 #   do-make-includes: install include files.  #   do-make-includes: install include files.
 #   do-lib-csu: build & install startup object files.  #   do-lib-csu: build & install startup object files.
 #   do-lib: build & install system libraries.  #   do-lib: build & install system libraries.
Line 58 
Line 57 
 #   do-whatisdb: build & install the `whatis.db' man database.  #   do-whatisdb: build & install the `whatis.db' man database.
 #   buildendmsg: displays the end time of the build.  #   buildendmsg: displays the end time of the build.
   
 .include <bsd.own.mk>  .include "${.CURDIR}/share/mk/bsd.own.mk"
   
 MKOBJDIRS ?= no  MKOBJDIRS ?= no
   
Line 66  MKOBJDIRS ?= no
Line 65  MKOBJDIRS ?= no
 _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(cleandir) || make(obj)  .if make(cleandir) || make(obj)
 SUBDIR+= distrib  SUBDIR+= distrib tools
 .ifdef MAKEOBJDIRPREFIX  .ifdef MAKEOBJDIRPREFIX
 SUBDIR+= etc  SUBDIR+= etc
 .endif  .endif
Line 108  buildendmsg:
Line 103  buildendmsg:
         @echo -n "Build finished at: "          @echo -n "Build finished at: "
         @date          @date
   
 # If sharesrc is around, use its share/mk files to bootstrap until the  
 # mk files are installed (first step of make build).  If installing to  
 # DESTDIR, don't bother, since the build will fail later on anyway.  
   
 beforeinstall:  
 .ifndef NODISTRIBDIRS  
 .ifndef DESTDIR  
 .if exists(share/mk)  
         (cd ${.CURDIR}/etc && \  
             ${MAKE} -m ${.CURDIR}/share/mk DESTDIR=/ distrib-dirs)  
 .else  
         (cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs)  
 .endif  
 .else  
         (cd ${.CURDIR}/etc && ${MAKE} DESTDIR=${DESTDIR} distrib-dirs)  
 .endif  
 .endif  
   
 afterinstall:  afterinstall:
 .if ${MKMAN} != "no" && !defined(_BUILD)  .if ${MKMAN} != "no" && !defined(_BUILD)
         ${MAKE} ${_M} whatis.db          ${MAKE} ${_M} whatis.db
Line 143  build:
Line 120  build:
 .else  .else
 build:  build:
         @${MAKE} ${_M} buildstartmsg          @${MAKE} ${_M} buildstartmsg
         @${MAKE} ${_M} beforeinstall          @${MAKE} ${_M} do-make-tools
           @${MAKE} ${_M} do-distrib-dirs
         @${MAKE} ${_M} do-force-domestic          @${MAKE} ${_M} do-force-domestic
         @${MAKE} ${_M} do-share-mk  
         @${MAKE} ${_M} do-cleandir          @${MAKE} ${_M} do-cleandir
         @${MAKE} ${_M} do-make-obj          @${MAKE} ${_M} do-make-obj
         @${MAKE} ${_M} do-make-tools  
         @${MAKE} ${_M} do-make-includes          @${MAKE} ${_M} do-make-includes
         @${MAKE} ${_M} do-lib-csu          @${MAKE} ${_M} do-lib-csu
         @${MAKE} ${_M} do-lib          @${MAKE} ${_M} do-lib
Line 159  build:
Line 135  build:
         @${MAKE} ${_M} buildendmsg          @${MAKE} ${_M} buildendmsg
 .endif  .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:  do-force-domestic:
 .if defined(FORCE_DOMESTIC)  .if defined(FORCE_DOMESTIC)
         @echo '*** CAPUTE!'          @echo '*** CAPUTE!'
Line 167  do-force-domestic:
Line 160  do-force-domestic:
         @false          @false
 .endif  .endif
   
 do-share-mk:  
 .if ${MKSHARE} != "no"  
         (cd ${.CURDIR}/share/mk && ${MAKE} install)  
 .endif  
   
 do-cleandir:  do-cleandir:
 .if !defined(UPDATE) && !defined(NOCLEANDIR)  .if !defined(UPDATE) && !defined(NOCLEANDIR)
         ${MAKE} ${_J} ${_M} cleandir          ${MAKE} ${_J} ${_M} cleandir
Line 180  do-cleandir:
Line 168  do-cleandir:
 do-make-obj:  do-make-obj:
 .if ${MKOBJDIRS} != "no"  .if ${MKOBJDIRS} != "no"
         ${MAKE} ${_J} ${_M} obj          ${MAKE} ${_J} ${_M} obj
 .if defined(USE_NEW_TOOLCHAIN)  
         cd ${.CURDIR}/tools && ${MAKE} ${_M} obj  
 .endif  
 .endif  
   
 do-make-tools:  
 .if defined(USE_NEW_TOOLCHAIN)  
         cd ${.CURDIR}/tools && ${MAKE} ${_M} build  
 .endif  .endif
   
 do-make-includes:  do-make-includes:
Line 229  includes-bin includes-games includes-lib
Line 209  includes-bin includes-games includes-lib
 includes-sbin includes-usr.sbin:  includes-sbin includes-usr.sbin:
         @${TRUE}          @${TRUE}
   
 .include <bsd.subdir.mk>  .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.129  
changed lines
  Added in v.1.134

CVSweb <webmaster@jp.NetBSD.org>