Home | History | Annotate | Line # | Download | only in src
Makefile revision 1.246.2.1.2.1
      1  1.246.2.1.2.1  wrstuden #	$NetBSD: Makefile,v 1.246.2.1.2.1 2007/09/30 20:27:37 wrstuden Exp $
      2           1.95       cjs 
      3          1.193     lukem #
      4           1.95       cjs # This is the top-level makefile for building NetBSD. For an outline of
      5           1.95       cjs # how to build a snapshot or release, as well as other release engineering
      6          1.221      salo # information, see http://www.NetBSD.org/developers/releng/index.html
      7           1.95       cjs #
      8           1.95       cjs # Not everything you can set or do is documented in this makefile. In
      9           1.95       cjs # particular, you should review the files in /usr/share/mk (especially
     10           1.95       cjs # bsd.README) for general information on building programs and writing
     11           1.95       cjs # Makefiles within this structure, and see the comments in src/etc/Makefile
     12           1.95       cjs # for further information on installation and release set options.
     13           1.95       cjs #
     14           1.95       cjs # Variables listed below can be set on the make command line (highest
     15           1.95       cjs # priority), in /etc/mk.conf (middle priority), or in the environment
     16           1.95       cjs # (lowest priority).
     17           1.95       cjs #
     18           1.95       cjs # Variables:
     19          1.101  sommerfe #   DESTDIR is the target directory for installation of the compiled
     20          1.101  sommerfe #	software. It defaults to /. Note that programs are built against
     21          1.101  sommerfe #	libraries installed in DESTDIR.
     22          1.214     lukem #   MKMAN, if `no', will prevent building of manual pages.
     23          1.214     lukem #   MKOBJDIRS, if not `no', will build object directories at
     24          1.101  sommerfe #	an appropriate point in a build.
     25          1.214     lukem #   MKSHARE, if `no', will prevent building and installing
     26           1.95       cjs #	anything in /usr/share.
     27          1.214     lukem #   MKUPDATE, if not `no', will avoid a `make cleandir' at the start of
     28          1.178     enami #	`make build', as well as having the effects listed in
     29          1.178     enami #	/usr/share/mk/bsd.README.
     30          1.125       mrg #   NOCLEANDIR, if defined, will avoid a `make cleandir' at the start
     31          1.178     enami #	of the `make build'.
     32          1.119    toddpw #   NOINCLUDES will avoid the `make includes' usually done by `make build'.
     33           1.95       cjs #
     34          1.214     lukem #   See mk.conf(5) for more details.
     35          1.214     lukem #
     36          1.214     lukem #
     37           1.95       cjs # Targets:
     38          1.137        tv #   build:
     39          1.196     lukem #	Builds a full release of NetBSD in DESTDIR, except for the
     40          1.196     lukem #	/etc configuration files.
     41          1.196     lukem #	If BUILD_DONE is set, this is an empty target.
     42          1.196     lukem #   distribution:
     43          1.196     lukem #	Builds a full release of NetBSD in DESTDIR, including the /etc
     44          1.196     lukem #	configuration files.
     45          1.196     lukem #   buildworld:
     46          1.196     lukem #	As per `make distribution', except that it ensures that DESTDIR
     47          1.196     lukem #	is not the root directory.
     48          1.196     lukem #   installworld:
     49          1.196     lukem #	Install the distribution from DESTDIR to INSTALLWORLDDIR (which
     50          1.196     lukem #	defaults to the root directory).  Ensures that INSTALLWORLDDIR
     51          1.196     lukem #	is the not root directory if cross compiling.
     52          1.137        tv #   release:
     53          1.240     lukem #	Does a `make distribution', and then tars up the DESTDIR files
     54          1.196     lukem #	into RELEASEDIR/${MACHINE}, in release(7) format.
     55          1.196     lukem #	(See etc/Makefile for more information on this.)
     56          1.137        tv #   regression-tests:
     57          1.137        tv #	Runs the regression tests in "regress" on this host.
     58          1.206     lukem #   sets:
     59          1.206     lukem #	Populate ${RELEASEDIR}/${MACHINE}/binary/sets from ${DESTDIR}
     60          1.206     lukem #   sourcesets:
     61          1.206     lukem #	Populate ${RELEASEDIR}/source/sets from ${NETBSDSRCDIR}
     62          1.241       apb #   syspkgs:
     63          1.241       apb #	Populate ${RELEASEDIR}/${MACHINE}/binary/syspkgs from ${DESTDIR}
     64          1.243       apb #   iso-image:
     65  1.246.2.1.2.1  wrstuden #	Create CD-ROM image in RELEASEDIR/iso.
     66          1.243       apb #	RELEASEDIR must already have been populated by `make release'
     67          1.243       apb #	or equivalent.
     68  1.246.2.1.2.1  wrstuden #   iso-image-source:
     69  1.246.2.1.2.1  wrstuden #	Create CD-ROM image with source in RELEASEDIR/iso.
     70  1.246.2.1.2.1  wrstuden #	RELEASEDIR must already have been populated by
     71  1.246.2.1.2.1  wrstuden #	`make release sourcesets' or equivalent.
     72          1.123       mrg #
     73          1.137        tv # Targets invoked by `make build,' in order:
     74          1.155        tv #   cleandir:        cleans the tree.
     75          1.137        tv #   obj:             creates object directories.
     76          1.152        tv #   do-tools:        builds host toolchain.
     77          1.208     lukem #   do-distrib-dirs: creates the distribution directories.
     78          1.208     lukem #   includes:        installs include files.
     79          1.202   thorpej #   do-tools-compat: builds the "libnbcompat" library; needed for some
     80          1.202   thorpej #                    random host tool programs in the source tree.
     81          1.238     lukem #   do-lib-csu:      builds and installs prerequisites from lib/csu.
     82          1.236   thorpej #   do-gnu-lib-crtstuff3: builds and installs prerequisites from
     83          1.236   thorpej #			  gnu/lib/crtstuff3
     84          1.222     lukem #   do-gnu-lib-libgcc3: builds and installs prerequisites from gnu/lib/libgcc3
     85          1.186   thorpej #   do-lib-libc:     builds and installs prerequisites from lib/libc.
     86          1.143        tv #   do-lib:          builds and installs prerequisites from lib.
     87          1.143        tv #   do-gnu-lib:      builds and installs prerequisites from gnu/lib.
     88          1.189     itohy #   do-ld.so:        builds and installs prerequisites from libexec/ld.*_so.
     89          1.137        tv #   do-build:        builds and installs the entire system.
     90          1.227     lukem #   do-x11:          builds and installs X11R6 from src/x11 if ${MKX11} != "no"
     91          1.222     lukem #   do-obsolete:     installs the obsolete sets (for the postinstall-* targets).
     92          1.193     lukem #
     93           1.32       cgd 
     94          1.146        tv .if ${.MAKEFLAGS:M${.CURDIR}/share/mk} == ""
     95          1.146        tv .MAKEFLAGS: -m ${.CURDIR}/share/mk
     96          1.146        tv .endif
     97          1.163        tv 
     98          1.193     lukem #
     99          1.163        tv # If _SRC_TOP_OBJ_ gets set here, we will end up with a directory that may
    100          1.163        tv # not be the top level objdir, because "make obj" can happen in the *middle*
    101          1.163        tv # of "make build" (long after <bsd.own.mk> is calculated it).  So, pre-set
    102          1.163        tv # _SRC_TOP_OBJ_ here so it will not be added to ${.MAKEOVERRIDES}.
    103          1.193     lukem #
    104          1.163        tv _SRC_TOP_OBJ_=
    105          1.148       jmc 
    106          1.146        tv .include <bsd.own.mk>
    107            1.4       cgd 
    108          1.193     lukem #
    109          1.137        tv # Sanity check: make sure that "make build" is not invoked simultaneously
    110          1.137        tv # with a standard recursive target.
    111          1.193     lukem #
    112          1.137        tv 
    113          1.137        tv .if make(build) || make(release) || make(snapshot)
    114          1.137        tv .for targ in ${TARGETS:Nobj:Ncleandir}
    115          1.137        tv .if make(${targ}) && !target(.BEGIN)
    116          1.137        tv .BEGIN:
    117          1.137        tv 	@echo 'BUILD ABORTED: "make build" and "make ${targ}" are mutually exclusive.'
    118          1.137        tv 	@false
    119          1.137        tv .endif
    120          1.137        tv .endfor
    121          1.137        tv .endif
    122           1.58        tv 
    123          1.166    simonb _SUBDIR=	tools lib include gnu bin games libexec sbin usr.bin
    124          1.205   thorpej _SUBDIR+=	usr.sbin share rescue sys etc .WAIT distrib regress
    125          1.105     assar 
    126          1.193     lukem #
    127          1.137        tv # Weed out directories that don't exist.
    128          1.193     lukem #
    129           1.36  explorer 
    130          1.137        tv .for dir in ${_SUBDIR}
    131          1.246       dbj .if ("${dir}" == ".WAIT") || exists(${dir}/Makefile) && (${BUILD_${dir}:Uyes} != "no")
    132          1.137        tv SUBDIR+=	${dir}
    133           1.36  explorer .endif
    134          1.137        tv .endfor
    135           1.21       cgd 
    136           1.13    brezak .if exists(regress)
    137          1.242       dsl regression-tests: .PHONY .MAKE
    138           1.10       cgd 	@echo Running regression tests...
    139          1.232     lukem 	${MAKEDIRTARGET} regress regress
    140           1.13    brezak .endif
    141           1.20       cgd 
    142          1.214     lukem .if ${MKUNPRIVED} != "no"
    143          1.179   thorpej NOPOSTINSTALL=	# defined
    144          1.179   thorpej .endif
    145          1.179   thorpej 
    146          1.242       dsl afterinstall: .PHONY .MAKE
    147          1.137        tv .if ${MKMAN} != "no"
    148          1.232     lukem 	${MAKEDIRTARGET} share/man makedb
    149          1.137        tv .endif
    150          1.214     lukem .if (${MKUNPRIVED} != "no" && ${MKINFO} != "no")
    151          1.232     lukem 	${MAKEDIRTARGET} gnu/usr.bin/texinfo/install-info infodir-meta
    152          1.176     lukem .endif
    153          1.179   thorpej .if !defined(NOPOSTINSTALL)
    154          1.232     lukem 	${MAKEDIRTARGET} . postinstall-check
    155          1.159     perry .endif
    156          1.170     lukem 
    157          1.239     lukem _POSTINSTALL=	${.CURDIR}/usr.sbin/postinstall/postinstall
    158          1.239     lukem 
    159          1.228     lukem postinstall-check: .PHONY
    160          1.169     lukem 	@echo "   === Post installation checks ==="
    161          1.239     lukem 	${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ check
    162          1.171     lukem 	@echo "   ================================"
    163          1.171     lukem 
    164          1.228     lukem postinstall-fix: .NOTMAIN .PHONY
    165          1.171     lukem 	@echo "   === Post installation fixes ==="
    166          1.239     lukem 	${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix
    167          1.212     lukem 	@echo "   ==============================="
    168          1.212     lukem 
    169          1.228     lukem postinstall-fix-obsolete: .NOTMAIN .PHONY
    170          1.212     lukem 	@echo "   === Removing obsolete files ==="
    171          1.239     lukem 	${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix obsolete
    172          1.212     lukem 	@echo "   ==============================="
    173          1.169     lukem 
    174          1.108       erh 
    175          1.193     lukem #
    176          1.137        tv # Targets (in order!) called by "make build".
    177          1.193     lukem #
    178          1.245       mrg .if ${HAVE_GCC} == "3"
    179          1.220       mrg LIBGCC_EXT=3
    180          1.245       mrg .else
    181          1.244       mrg LIBGCC_EXT=4
    182          1.220       mrg .endif
    183          1.123       mrg 
    184          1.156        tv BUILDTARGETS+=	check-tools
    185          1.214     lukem .if ${MKUPDATE} == "no" && !defined(NOCLEANDIR)
    186          1.155        tv BUILDTARGETS+=	cleandir
    187          1.155        tv .endif
    188          1.149        tv .if ${MKOBJDIRS} != "no"
    189          1.137        tv BUILDTARGETS+=	obj
    190          1.123       mrg .endif
    191          1.138        tv .if ${USETOOLS} == "yes"
    192          1.152        tv BUILDTARGETS+=	do-tools
    193          1.131        tv .endif
    194          1.137        tv .if !defined(NODISTRIBDIRS)
    195          1.137        tv BUILDTARGETS+=	do-distrib-dirs
    196          1.131        tv .endif
    197          1.137        tv .if !defined(NOINCLUDES)
    198          1.137        tv BUILDTARGETS+=	includes
    199          1.131        tv .endif
    200          1.202   thorpej BUILDTARGETS+=	do-tools-compat
    201          1.231     skrll BUILDTARGETS+=	do-lib-csu
    202          1.207  drochner .if ${MKGCC} != "no"
    203          1.244       mrg .if (${HAVE_GCC} == "3" || ${HAVE_GCC} == "4")
    204          1.236   thorpej BUILDTARGETS+=	do-gnu-lib-crtstuff${LIBGCC_EXT}
    205          1.237     tacha .endif
    206          1.220       mrg BUILDTARGETS+=	do-gnu-lib-libgcc${LIBGCC_EXT}
    207          1.207  drochner .endif
    208          1.231     skrll BUILDTARGETS+=	do-lib-libc
    209          1.224     lukem BUILDTARGETS+=	do-lib do-gnu-lib
    210          1.224     lukem BUILDTARGETS+=	do-ld.so
    211          1.224     lukem BUILDTARGETS+=	do-build
    212          1.227     lukem .if ${MKX11} != "no"
    213          1.227     lukem BUILDTARGETS+=	do-x11
    214          1.227     lukem .endif
    215          1.200     lukem BUILDTARGETS+=	do-obsolete
    216          1.131        tv 
    217          1.193     lukem #
    218          1.137        tv # Enforce proper ordering of some rules.
    219          1.193     lukem #
    220          1.123       mrg 
    221          1.137        tv .ORDER:		${BUILDTARGETS}
    222          1.228     lukem includes-lib:	.PHONY includes-include includes-sys
    223          1.228     lukem includes-gnu:	.PHONY includes-lib
    224          1.123       mrg 
    225          1.193     lukem #
    226          1.137        tv # Build the system and install into DESTDIR.
    227          1.193     lukem #
    228          1.123       mrg 
    229          1.191     lukem START_TIME!=	date
    230          1.191     lukem 
    231          1.242       dsl build: .PHONY .MAKE
    232          1.137        tv .if defined(BUILD_DONE)
    233          1.137        tv 	@echo "Build already installed into ${DESTDIR}"
    234          1.137        tv .else
    235          1.191     lukem 	@echo "Build started at: ${START_TIME}"
    236          1.145        tv .for tgt in ${BUILDTARGETS}
    237          1.232     lukem 	${MAKEDIRTARGET} . ${tgt}
    238          1.145        tv .endfor
    239          1.232     lukem 	${MAKEDIRTARGET} etc install-etc-release
    240          1.191     lukem 	@echo   "Build started at:  ${START_TIME}"
    241          1.172     bjh21 	@printf "Build finished at: " && date
    242           1.71   mycroft .endif
    243          1.160   thorpej 
    244          1.193     lukem #
    245          1.160   thorpej # Build a full distribution, but not a release (i.e. no sets into
    246          1.193     lukem # ${RELEASEDIR}).  "buildworld" enforces a build to ${DESTDIR} != /
    247          1.193     lukem #
    248          1.160   thorpej 
    249          1.242       dsl distribution buildworld: .PHONY .MAKE
    250          1.194     lukem .if make(buildworld) && \
    251          1.194     lukem     (!defined(DESTDIR) || ${DESTDIR} == "" || ${DESTDIR} == "/")
    252          1.193     lukem 	@echo "Won't make ${.TARGET} with DESTDIR=/"
    253          1.193     lukem 	@false
    254          1.193     lukem .endif
    255          1.232     lukem 	${MAKEDIRTARGET} . build NOPOSTINSTALL=1
    256          1.232     lukem 	${MAKEDIRTARGET} etc distribution INSTALL_DONE=1
    257          1.181   thorpej .if defined(DESTDIR) && ${DESTDIR} != "" && ${DESTDIR} != "/"
    258          1.232     lukem 	${MAKEDIRTARGET} . postinstall-fix-obsolete
    259          1.232     lukem 	${MAKEDIRTARGET} distrib/sets checkflist
    260          1.181   thorpej .endif
    261          1.192     lukem 	@echo   "make ${.TARGET} started at:  ${START_TIME}"
    262          1.185     lukem 	@printf "make ${.TARGET} finished at: " && date
    263          1.123       mrg 
    264          1.193     lukem #
    265          1.193     lukem # Install the distribution from $DESTDIR to $INSTALLWORLDDIR (defaults to `/')
    266          1.193     lukem # If installing to /, ensures that the host's operating system is NetBSD and
    267          1.193     lukem # the host's `uname -m` == ${MACHINE}.
    268          1.193     lukem #
    269          1.193     lukem 
    270          1.193     lukem HOST_UNAME_S!=	uname -s
    271          1.193     lukem HOST_UNAME_M!=	uname -m
    272          1.193     lukem 
    273          1.242       dsl installworld: .PHONY .MAKE
    274          1.194     lukem .if (!defined(DESTDIR) || ${DESTDIR} == "" || ${DESTDIR} == "/")
    275          1.193     lukem 	@echo "Can't make ${.TARGET} to DESTDIR=/"
    276          1.193     lukem 	@false
    277          1.193     lukem .endif
    278          1.193     lukem .if !defined(INSTALLWORLDDIR) || \
    279          1.193     lukem     ${INSTALLWORLDDIR} == "" || ${INSTALLWORLDDIR} == "/"
    280          1.193     lukem .if (${HOST_UNAME_S} != "NetBSD")
    281          1.193     lukem 	@echo "Won't cross-make ${.TARGET} from ${HOST_UNAME_S} to NetBSD with INSTALLWORLDDIR=/"
    282          1.193     lukem 	@false
    283          1.193     lukem .endif
    284          1.193     lukem .if (${HOST_UNAME_M} != ${MACHINE})
    285          1.193     lukem 	@echo "Won't cross-make ${.TARGET} from ${HOST_UNAME_M} to ${MACHINE} with INSTALLWORLDDIR=/"
    286          1.193     lukem 	@false
    287          1.193     lukem .endif
    288          1.193     lukem .endif
    289          1.232     lukem 	${MAKEDIRTARGET} distrib/sets installsets \
    290          1.232     lukem 	    INSTALLDIR=${INSTALLWORLDDIR:U/} INSTALLSETS=
    291          1.232     lukem 	${MAKEDIRTARGET} . postinstall-check DESTDIR=${INSTALLWORLDDIR}
    292          1.193     lukem 	@echo   "make ${.TARGET} started at:  ${START_TIME}"
    293          1.193     lukem 	@printf "make ${.TARGET} finished at: " && date
    294          1.199     lukem 
    295          1.199     lukem #
    296          1.206     lukem # Create sets from $DESTDIR or $NETBSDSRCDIR into $RELEASEDIR
    297          1.199     lukem #
    298          1.199     lukem 
    299          1.241       apb .for tgt in sets sourcesets syspkgs
    300          1.242       dsl ${tgt}: .PHONY .MAKE
    301          1.232     lukem 	${MAKEDIRTARGET} distrib/sets ${tgt}
    302          1.206     lukem .endfor
    303          1.193     lukem 
    304          1.193     lukem #
    305          1.240     lukem # Build a release or snapshot (implies "make distribution").  Note that
    306          1.181   thorpej # in this case, the set lists will be checked before the tar files
    307          1.181   thorpej # are made.
    308          1.193     lukem #
    309          1.123       mrg 
    310          1.242       dsl release snapshot: .PHONY .MAKE
    311          1.240     lukem 	${MAKEDIRTARGET} . distribution
    312          1.240     lukem 	${MAKEDIRTARGET} etc release DISTRIBUTION_DONE=1
    313          1.192     lukem 	@echo   "make ${.TARGET} started at:  ${START_TIME}"
    314          1.185     lukem 	@printf "make ${.TARGET} finished at: " && date
    315          1.123       mrg 
    316          1.193     lukem #
    317          1.243       apb # Create a CD-ROM image.
    318          1.243       apb #
    319          1.243       apb 
    320          1.243       apb iso-image: .PHONY
    321      1.246.2.1       riz 	${MAKEDIRTARGET} distrib iso_image
    322          1.243       apb 	${MAKEDIRTARGET} etc iso-image
    323          1.243       apb 	@echo   "make ${.TARGET} started at:  ${START_TIME}"
    324          1.243       apb 	@printf "make ${.TARGET} finished at: " && date
    325          1.243       apb 
    326  1.246.2.1.2.1  wrstuden iso-image-source: .PHONY
    327  1.246.2.1.2.1  wrstuden 	${MAKEDIRTARGET} distrib iso_image CDSOURCE=true
    328  1.246.2.1.2.1  wrstuden 	${MAKEDIRTARGET} etc iso-image
    329  1.246.2.1.2.1  wrstuden 	@echo   "make ${.TARGET} started at:  ${START_TIME}"
    330  1.246.2.1.2.1  wrstuden 	@printf "make ${.TARGET} finished at: " && date
    331  1.246.2.1.2.1  wrstuden 
    332          1.243       apb #
    333          1.137        tv # Special components of the "make build" process.
    334          1.193     lukem #
    335          1.156        tv 
    336          1.228     lukem check-tools: .PHONY
    337          1.223     lukem .if ${TOOLCHAIN_MISSING} != "no" && !defined(EXTERNAL_TOOLCHAIN)
    338          1.187   thorpej 	@echo '*** WARNING:  Building on MACHINE=${MACHINE} with missing toolchain.'
    339          1.187   thorpej 	@echo '*** May result in a failed build or corrupt binaries!'
    340          1.187   thorpej .elif defined(EXTERNAL_TOOLCHAIN)
    341          1.187   thorpej 	@echo '*** Using external toolchain rooted at ${EXTERNAL_TOOLCHAIN}.'
    342          1.156        tv .endif
    343          1.173  sommerfe .if defined(NBUILDJOBS)
    344          1.173  sommerfe 	@echo '*** WARNING: NBUILDJOBS is obsolete; use -j directly instead!'
    345          1.173  sommerfe .endif
    346          1.123       mrg 
    347          1.242       dsl do-distrib-dirs: .PHONY .MAKE
    348          1.147       jmc .if !defined(DESTDIR) || ${DESTDIR} == ""
    349          1.232     lukem 	${MAKEDIRTARGET} etc distrib-dirs DESTDIR=/
    350          1.147       jmc .else
    351          1.232     lukem 	${MAKEDIRTARGET} etc distrib-dirs DESTDIR=${DESTDIR}
    352          1.147       jmc .endif
    353          1.190     lukem 
    354          1.190     lukem .for targ in cleandir obj includes
    355          1.228     lukem do-${targ}: .PHONY ${targ}
    356          1.190     lukem 	@true
    357          1.190     lukem .endfor
    358          1.123       mrg 
    359          1.236   thorpej .for dir in tools tools/compat lib/csu gnu/lib/crtstuff${LIBGCC_EXT} gnu/lib/libgcc${LIBGCC_EXT} lib/libc lib/libdes lib gnu/lib
    360          1.242       dsl do-${dir:S/\//-/g}: .PHONY .MAKE
    361          1.137        tv .for targ in dependall install
    362          1.232     lukem 	${MAKEDIRTARGET} ${dir} ${targ}
    363          1.137        tv .endfor
    364          1.184     lukem .endfor
    365          1.184     lukem 
    366          1.242       dsl do-ld.so: .PHONY .MAKE
    367          1.184     lukem .for targ in dependall install
    368          1.189     itohy .if (${OBJECT_FMT} == "a.out")
    369          1.232     lukem 	${MAKEDIRTARGET} libexec/ld.aout_so ${targ}
    370          1.189     itohy .endif
    371          1.189     itohy .if (${OBJECT_FMT} == "ELF")
    372          1.232     lukem 	${MAKEDIRTARGET} libexec/ld.elf_so ${targ}
    373          1.189     itohy .endif
    374          1.137        tv .endfor
    375          1.143        tv 
    376          1.242       dsl do-build: .PHONY .MAKE
    377          1.154        tv .for targ in dependall install
    378          1.232     lukem 	${MAKEDIRTARGET} . ${targ} BUILD_tools=no BUILD_lib=no
    379          1.154        tv .endfor
    380          1.200     lukem 
    381          1.242       dsl do-x11: .PHONY .MAKE
    382          1.232     lukem 	${MAKEDIRTARGET} x11 build
    383          1.227     lukem 
    384          1.242       dsl do-obsolete: .PHONY .MAKE
    385          1.232     lukem 	${MAKEDIRTARGET} etc install-obsolete-lists
    386           1.87       cjs 
    387          1.193     lukem #
    388          1.137        tv # Speedup stubs for some subtrees that don't need to run these rules.
    389          1.137        tv # (Tells <bsd.subdir.mk> not to recurse for them.)
    390          1.193     lukem #
    391          1.129        tv 
    392          1.152        tv .for dir in bin etc distrib games libexec regress sbin usr.sbin tools
    393          1.228     lukem includes-${dir}: .PHONY
    394          1.152        tv 	@true
    395          1.152        tv .endfor
    396          1.152        tv .for dir in etc distrib regress
    397          1.228     lukem install-${dir}: .PHONY
    398          1.152        tv 	@true
    399          1.152        tv .endfor
    400          1.152        tv 
    401          1.193     lukem #
    402          1.152        tv # XXX this needs to change when distrib Makefiles are recursion compliant
    403          1.193     lukem # XXX many distrib subdirs need "cd etc && make snap_pre snap_kern" first...
    404          1.193     lukem #
    405          1.228     lukem dependall-distrib depend-distrib all-distrib: .PHONY
    406          1.136   nathanw 	@true
    407          1.130        tv 
    408          1.211     lukem .include <bsd.sys.mk>
    409          1.151        tv .include <bsd.obj.mk>
    410          1.209     lukem .include <bsd.kernobj.mk>
    411          1.146        tv .include <bsd.subdir.mk>
    412          1.144        tv 
    413          1.228     lukem build-docs: .PHONY ${.CURDIR}/BUILDING
    414          1.188     lukem ${.CURDIR}/BUILDING: doc/BUILDING.mdoc
    415          1.230     lukem 	${_MKMSG_CREATE} ${.TARGET}
    416          1.216     lukem 	${TOOL_GROFF} -mdoc -Tascii -P-bou $> >$@
    417          1.209     lukem 
    418          1.209     lukem 
    419          1.209     lukem #
    420          1.209     lukem # Display current make(1) parameters
    421          1.209     lukem #
    422          1.242       dsl params: .PHONY .MAKE
    423          1.232     lukem 	${MAKEDIRTARGET} etc params
    424