[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.110 and 1.123

version 1.110, 2000/03/11 00:10:20 version 1.123, 2001/06/10 13:02:54
Line 27 
Line 27 
 #       '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 will avoid a `make cleandir' at the start of `make build',
 #       as well as having the effects listed in /usr/share/mk/bsd.README.  #       as well as having the effects listed in /usr/share/mk/bsd.README.
   #   NOCLEANDIR will avoid a `make cleandir' at the start of `make build',
   #       but without having the effects listed in /usr/share/mk/bsd.README.
   #   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 38 
 #       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.
   #   beforeinstall: creates the distribution directories.
   #   do-force-domestic: check's that FORCE_DOMESTIC isn't set (deprecated.)
   #   do-share-mk: installs /usr/share/mk files.
   #   do-cleandir: clean's the tree.
   #   do-make-obj: create's object directories if required.
   #   do-check-egcs: check's that we have a modern enough compiler (deprecated.)
   #   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.
   
 SRCTOP=.  .include <bsd.own.mk>
 .include <bsd.crypto.mk>                # for configuration variables.  
   
 .if defined(CRYPTOPATH)  
 .sinclude "${CRYPTOPATH}/Makefile.frag"  
 .endif  
   
 MKOBJDIRS ?= no  MKOBJDIRS ?= no
 HAVE_GCC28!=    ${CXX} --version | egrep "^(2\.8|egcs)" ; echo  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
   .ifdef MAKEOBJDIRPREFIX
   SUBDIR+= etc
   .endif
 .endif  .endif
   
 includes-lib: includes-include includes-sys  includes-lib: includes-include includes-sys
Line 74  SUBDIR+= regress
Line 96  SUBDIR+= regress
   
 regression-tests:  regression-tests:
         @echo Running regression tests...          @echo Running regression tests...
         @(cd ${.CURDIR}/regress && ${MAKE} regress)          @(cd ${.CURDIR}/regress && ${MAKE} ${_M} regress)
 .endif  .endif
   
 buildmsg:  buildstartmsg:
         @echo -n "Build started at: "          @echo -n "Build started at: "
         @date          @date
   
   buildendmsg:
           @echo -n "Build finished at: "
           @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:  beforeinstall:
   .ifndef NODISTRIBDIRS
 .ifndef DESTDIR  .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)          (cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs)
   .endif
 .else  .else
         (cd ${.CURDIR}/etc && ${MAKE} distrib-dirs)          (cd ${.CURDIR}/etc && ${MAKE} distrib-dirs)
 .endif  .endif
   .endif
   
 afterinstall:  afterinstall:
 .if ${MKMAN} != "no" && !defined(_BUILD)  .if ${MKMAN} != "no" && !defined(_BUILD)
         ${MAKE} whatis.db          ${MAKE} ${_M} whatis.db
 .endif  .endif
   
 whatis.db:  whatis.db:
         (cd ${.CURDIR}/share/man && ${MAKE} 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,  # wrt info/dir below:  It's safe to move this over top of /usr/share/info/dir,
 # as the build will automatically remove/replace the non-pkg entries there.  # as the build will automatically remove/replace the non-pkg entries there.
Line 103  whatis.db:
Line 139  whatis.db:
 build:  build:
         @echo "Build installed into ${DESTDIR}"          @echo "Build installed into ${DESTDIR}"
 .else  .else
 build: buildmsg beforeinstall  build: buildstartmsg beforeinstall do-force-domestic do-share-mk do-cleandir do-make-obj do-check-egcs do-make-includes do-lib-csu do-lib do-gnu-lib do-dependall do-domestic do-whatisdb buildendmsg
   .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
   
   do-share-mk:
 .if ${MKSHARE} != "no"  .if ${MKSHARE} != "no"
         (cd ${.CURDIR}/share/mk && ${MAKE} install)          (cd ${.CURDIR}/share/mk && ${MAKE} install)
 .endif  .endif
 .if !defined(UPDATE)  
         ${MAKE} cleandir  do-cleandir:
   .if !defined(UPDATE) && !defined(NOCLEANDIR)
           ${MAKE} ${_J} ${_M} cleandir
 .endif  .endif
   
   do-make-obj:
 .if ${MKOBJDIRS} != "no"  .if ${MKOBJDIRS} != "no"
         ${MAKE} obj          ${MAKE} ${_J} ${_M} obj
 .endif  .endif
 .if empty(HAVE_GCC28)  
   do-check-egcs:
   .if empty(HAVE_EGCS)
 .if defined(DESTDIR)  .if defined(DESTDIR)
         @echo "*** CAPUTE!"          @echo "*** CAPUTE!"
         @echo "    You attempted to compile the world without egcs.  You must"          @echo "    You attempted to compile the world without egcs.  You must"
Line 127  build: buildmsg beforeinstall
Line 174  build: buildmsg beforeinstall
         @false          @false
 .else  .else
         (cd ${.CURDIR}/gnu/usr.bin/egcs && \          (cd ${.CURDIR}/gnu/usr.bin/egcs && \
             ${MAKE} ${_J} dependall MKMAN=no && \              ${MAKE} ${_M} ${_J} dependall MKMAN=no && \
             ${MAKE} MKMAN=no install && ${MAKE} cleandir)              ${MAKE} ${_M} MKMAN=no install && ${MAKE} ${_M} cleandir)
 .endif  .endif
 .endif  .endif
         ${MAKE} includes  
   do-make-includes:
   .if !defined(NOINCLUDES)
           ${MAKE} ${_M} includes
   .endif
   
   do-lib-csu:
         (cd ${.CURDIR}/lib/csu && \          (cd ${.CURDIR}/lib/csu && \
             ${MAKE} ${_J} MKMAN=no dependall && \              ${MAKE} ${_M} ${_J} MKSHARE=no dependall && \
             ${MAKE} MKMAN=no install)              ${MAKE} ${_M} MKSHARE=no install)
   
   do-lib:
         (cd ${.CURDIR}/lib && \          (cd ${.CURDIR}/lib && \
             ${MAKE} ${_J} MKMAN=no dependall && \              ${MAKE} ${_M} ${_J} MKSHARE=no dependall && \
             ${MAKE} MKMAN=no install)              ${MAKE} ${_M} MKSHARE=no install)
   
   do-gnu-lib:
         (cd ${.CURDIR}/gnu/lib && \          (cd ${.CURDIR}/gnu/lib && \
             ${MAKE} ${_J} MKMAN=no MKINFO=no dependall && \              ${MAKE} ${_M} ${_J} MKSHARE=no dependall && \
             ${MAKE} MKMAN=no MKINFO=no install)              ${MAKE} ${_M} MKSHARE=no install)
 .if target(cryptobuild)  
         ${MAKE} ${_J} cryptobuild  do-dependall:
 .endif          ${MAKE} ${_M} ${_J} dependall && ${MAKE} ${_M} _BUILD= install
         ${MAKE} ${_J} dependall && ${MAKE} _BUILD= install  
   do-domestic:
 .if defined(DOMESTIC) && !defined(EXPORTABLE_SYSTEM)  .if defined(DOMESTIC) && !defined(EXPORTABLE_SYSTEM)
         (cd ${.CURDIR}/${DOMESTIC} && ${MAKE} ${_J} _SLAVE_BUILD= build)          (cd ${.CURDIR}/${DOMESTIC} && ${MAKE} ${_M} ${_J} _SLAVE_BUILD= build)
 .endif  
         ${MAKE} whatis.db  
         @echo -n "Build finished at: "  
         @date  
 .endif  .endif
   
   do-whatisdb:
           ${MAKE} ${_M} whatis.db
   
 release snapshot: build  release snapshot: build
         (cd ${.CURDIR}/etc && ${MAKE} INSTALL_DONE=1 release)          (cd ${.CURDIR}/etc && ${MAKE} ${_M} INSTALL_DONE=1 release)
   
 .include <bsd.subdir.mk>  .include <bsd.subdir.mk>

Legend:
Removed from v.1.110  
changed lines
  Added in v.1.123

CVSweb <webmaster@jp.NetBSD.org>