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.103 retrieving revision 1.108 diff -u -p -r1.103 -r1.108 --- src/Makefile 1999/12/04 03:52:28 1.103 +++ src/Makefile 2000/02/29 21:54:03 1.108 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.103 1999/12/04 03:52:28 simonb Exp $ +# $NetBSD: Makefile,v 1.108 2000/02/29 21:54:03 erh 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 @@ -35,7 +35,12 @@ # more information on this.) # snapshot: a synonym for release. -.include # for configuration variables. +SRCTOP=. +.include # for configuration variables. + +.if defined(CRYPTOPATH) +.sinclude "${CRYPTOPATH}/Makefile.frag" +.endif MKOBJDIRS ?= no HAVE_GCC28!= ${CXX} --version | egrep "^(2\.8|egcs)" ; echo @@ -48,6 +53,8 @@ _J= -j${NBUILDJOBS} SUBDIR+= lib include bin libexec sbin usr.bin usr.sbin share sys +includes-lib: includes-include includes-sys + .if exists(games) SUBDIR+= games .endif @@ -66,11 +73,11 @@ regression-tests: @(cd ${.CURDIR}/regress && ${MAKE} regress) .endif -beforeinstall: -.ifmake build +buildmsg: @echo -n "Build started at: " @date -.endif + +beforeinstall: .ifndef DESTDIR (cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs) .else @@ -88,7 +95,7 @@ whatis.db: # 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. -build: beforeinstall +build: buildmsg beforeinstall .if defined(FORCE_DOMESTIC) @echo '*** CAPUTE!' @echo ' The FORCE_DOMESTIC flag is not compatible with "make build".' @@ -103,6 +110,7 @@ build: beforeinstall .endif .if ${MKOBJDIRS} != "no" ${MAKE} obj + (cd ${.CURDIR}/distrib && ${MAKE} obj) .endif .if empty(HAVE_GCC28) .if defined(DESTDIR) @@ -118,16 +126,16 @@ build: beforeinstall .endif ${MAKE} includes (cd ${.CURDIR}/lib/csu && \ - ${MAKE} ${_J} dependall MKMAN=no && \ + ${MAKE} ${_J} MKMAN=no dependall && \ ${MAKE} MKMAN=no install) (cd ${.CURDIR}/lib && \ - ${MAKE} ${_J} dependall MKMAN=no && \ + ${MAKE} ${_J} MKMAN=no dependall && \ ${MAKE} MKMAN=no install) (cd ${.CURDIR}/gnu/lib && \ - ${MAKE} ${_J} dependall MKMAN=no MKINFO=no && \ + ${MAKE} ${_J} MKMAN=no MKINFO=no dependall && \ ${MAKE} MKMAN=no MKINFO=no install) -.if ${MKSHARE} != "no" - (cd ${.CURDIR}/share/tmac && ${MAKE} && ${MAKE} install) +.if target(cryptobuild) + ${MAKE} ${_J} cryptobuild .endif ${MAKE} ${_J} dependall && ${MAKE} _BUILD= install .if defined(DOMESTIC) && !defined(EXPORTABLE_SYSTEM)