Makefile revision 1.258
11.258Sjnemeth# $NetBSD: Makefile,v 1.258 2008/10/03 18:09:48 jnemeth Exp $ 21.95Scjs 31.193Slukem# 41.95Scjs# This is the top-level makefile for building NetBSD. For an outline of 51.95Scjs# how to build a snapshot or release, as well as other release engineering 61.221Ssalo# information, see http://www.NetBSD.org/developers/releng/index.html 71.95Scjs# 81.95Scjs# Not everything you can set or do is documented in this makefile. In 91.95Scjs# particular, you should review the files in /usr/share/mk (especially 101.95Scjs# bsd.README) for general information on building programs and writing 111.95Scjs# Makefiles within this structure, and see the comments in src/etc/Makefile 121.95Scjs# for further information on installation and release set options. 131.95Scjs# 141.95Scjs# Variables listed below can be set on the make command line (highest 151.95Scjs# priority), in /etc/mk.conf (middle priority), or in the environment 161.95Scjs# (lowest priority). 171.95Scjs# 181.95Scjs# Variables: 191.101Ssommerfe# DESTDIR is the target directory for installation of the compiled 201.101Ssommerfe# software. It defaults to /. Note that programs are built against 211.101Ssommerfe# libraries installed in DESTDIR. 221.214Slukem# MKMAN, if `no', will prevent building of manual pages. 231.214Slukem# MKOBJDIRS, if not `no', will build object directories at 241.101Ssommerfe# an appropriate point in a build. 251.214Slukem# MKSHARE, if `no', will prevent building and installing 261.95Scjs# anything in /usr/share. 271.214Slukem# MKUPDATE, if not `no', will avoid a `make cleandir' at the start of 281.178Senami# `make build', as well as having the effects listed in 291.178Senami# /usr/share/mk/bsd.README. 301.125Smrg# NOCLEANDIR, if defined, will avoid a `make cleandir' at the start 311.178Senami# of the `make build'. 321.119Stoddpw# NOINCLUDES will avoid the `make includes' usually done by `make build'. 331.95Scjs# 341.214Slukem# See mk.conf(5) for more details. 351.214Slukem# 361.214Slukem# 371.95Scjs# Targets: 381.137Stv# build: 391.196Slukem# Builds a full release of NetBSD in DESTDIR, except for the 401.196Slukem# /etc configuration files. 411.196Slukem# If BUILD_DONE is set, this is an empty target. 421.196Slukem# distribution: 431.196Slukem# Builds a full release of NetBSD in DESTDIR, including the /etc 441.196Slukem# configuration files. 451.196Slukem# buildworld: 461.196Slukem# As per `make distribution', except that it ensures that DESTDIR 471.196Slukem# is not the root directory. 481.196Slukem# installworld: 491.196Slukem# Install the distribution from DESTDIR to INSTALLWORLDDIR (which 501.196Slukem# defaults to the root directory). Ensures that INSTALLWORLDDIR 511.196Slukem# is the not root directory if cross compiling. 521.137Stv# release: 531.240Slukem# Does a `make distribution', and then tars up the DESTDIR files 541.252Slukem# into ${RELEASEDIR}/${RELEASEMACHINEDIR}, in release(7) format. 551.196Slukem# (See etc/Makefile for more information on this.) 561.137Stv# regression-tests: 571.137Stv# Runs the regression tests in "regress" on this host. 581.206Slukem# sets: 591.252Slukem# Populate ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/sets 601.252Slukem# from ${DESTDIR} 611.206Slukem# sourcesets: 621.206Slukem# Populate ${RELEASEDIR}/source/sets from ${NETBSDSRCDIR} 631.241Sapb# syspkgs: 641.252Slukem# Populate ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/syspkgs 651.252Slukem# from ${DESTDIR} 661.243Sapb# iso-image: 671.248Sjnemeth# Create CD-ROM image in RELEASEDIR/iso. 681.243Sapb# RELEASEDIR must already have been populated by `make release' 691.243Sapb# or equivalent. 701.248Sjnemeth# iso-image-source: 711.248Sjnemeth# Create CD-ROM image with source in RELEASEDIR/iso. 721.248Sjnemeth# RELEASEDIR must already have been populated by 731.248Sjnemeth# `make release sourcesets' or equivalent. 741.123Smrg# 751.137Stv# Targets invoked by `make build,' in order: 761.155Stv# cleandir: cleans the tree. 771.137Stv# obj: creates object directories. 781.152Stv# do-tools: builds host toolchain. 791.208Slukem# do-distrib-dirs: creates the distribution directories. 801.208Slukem# includes: installs include files. 811.202Sthorpej# do-tools-compat: builds the "libnbcompat" library; needed for some 821.202Sthorpej# random host tool programs in the source tree. 831.238Slukem# do-lib-csu: builds and installs prerequisites from lib/csu. 841.249Slukem# do-libgcc: builds and installs prerequisites from 851.249Slukem# gnu/lib/crtstuff${LIBGCC_EXT} (if necessary) and 861.249Slukem# gnu/lib/libgcc${LIBGCC_EXT}. 871.256Sgmcgarry# do-libpcc: builds and install prerequisites from 881.256Sgmcgarry# external/bsd/pcc/crtstuff and external/bsd/pcc/libpcc. 891.186Sthorpej# do-lib-libc: builds and installs prerequisites from lib/libc. 901.143Stv# do-lib: builds and installs prerequisites from lib. 911.143Stv# do-gnu-lib: builds and installs prerequisites from gnu/lib. 921.253Slukem# do-external-lib: builds and installs prerequisites from external/lib. 931.255Spooka# do-sys-rump-fs-lib: builds and installs prerequisites from sys/rump/fs/lib 941.189Sitohy# do-ld.so: builds and installs prerequisites from libexec/ld.*_so. 951.137Stv# do-build: builds and installs the entire system. 961.257Slukem# do-x11: builds and installs X11; either 971.258Sjnemeth# X11R7 from src/external/mit/xorg if ${MKXORG} != "no" 981.257Slukem# or X11R6 from src/x11 if ${MKX11} != "no" 991.222Slukem# do-obsolete: installs the obsolete sets (for the postinstall-* targets). 1001.193Slukem# 1011.32Scgd 1021.146Stv.if ${.MAKEFLAGS:M${.CURDIR}/share/mk} == "" 1031.146Stv.MAKEFLAGS: -m ${.CURDIR}/share/mk 1041.146Stv.endif 1051.163Stv 1061.193Slukem# 1071.163Stv# If _SRC_TOP_OBJ_ gets set here, we will end up with a directory that may 1081.163Stv# not be the top level objdir, because "make obj" can happen in the *middle* 1091.163Stv# of "make build" (long after <bsd.own.mk> is calculated it). So, pre-set 1101.163Stv# _SRC_TOP_OBJ_ here so it will not be added to ${.MAKEOVERRIDES}. 1111.193Slukem# 1121.163Stv_SRC_TOP_OBJ_= 1131.148Sjmc 1141.146Stv.include <bsd.own.mk> 1151.4Scgd 1161.193Slukem# 1171.137Stv# Sanity check: make sure that "make build" is not invoked simultaneously 1181.137Stv# with a standard recursive target. 1191.193Slukem# 1201.137Stv 1211.137Stv.if make(build) || make(release) || make(snapshot) 1221.137Stv.for targ in ${TARGETS:Nobj:Ncleandir} 1231.137Stv.if make(${targ}) && !target(.BEGIN) 1241.137Stv.BEGIN: 1251.137Stv @echo 'BUILD ABORTED: "make build" and "make ${targ}" are mutually exclusive.' 1261.137Stv @false 1271.137Stv.endif 1281.137Stv.endfor 1291.137Stv.endif 1301.58Stv 1311.253Slukem_SUBDIR= tools lib include gnu external bin games libexec sbin usr.bin 1321.251Sjmmv_SUBDIR+= usr.sbin share rescue sys etc tests .WAIT distrib regress 1331.105Sassar 1341.193Slukem# 1351.137Stv# Weed out directories that don't exist. 1361.193Slukem# 1371.36Sexplorer 1381.137Stv.for dir in ${_SUBDIR} 1391.246Sdbj.if ("${dir}" == ".WAIT") || exists(${dir}/Makefile) && (${BUILD_${dir}:Uyes} != "no") 1401.137StvSUBDIR+= ${dir} 1411.36Sexplorer.endif 1421.137Stv.endfor 1431.21Scgd 1441.13Sbrezak.if exists(regress) 1451.242Sdslregression-tests: .PHONY .MAKE 1461.10Scgd @echo Running regression tests... 1471.232Slukem ${MAKEDIRTARGET} regress regress 1481.13Sbrezak.endif 1491.20Scgd 1501.214Slukem.if ${MKUNPRIVED} != "no" 1511.179SthorpejNOPOSTINSTALL= # defined 1521.179Sthorpej.endif 1531.179Sthorpej 1541.242Sdslafterinstall: .PHONY .MAKE 1551.137Stv.if ${MKMAN} != "no" 1561.232Slukem ${MAKEDIRTARGET} share/man makedb 1571.137Stv.endif 1581.214Slukem.if (${MKUNPRIVED} != "no" && ${MKINFO} != "no") 1591.232Slukem ${MAKEDIRTARGET} gnu/usr.bin/texinfo/install-info infodir-meta 1601.176Slukem.endif 1611.179Sthorpej.if !defined(NOPOSTINSTALL) 1621.232Slukem ${MAKEDIRTARGET} . postinstall-check 1631.159Sperry.endif 1641.170Slukem 1651.239Slukem_POSTINSTALL= ${.CURDIR}/usr.sbin/postinstall/postinstall 1661.239Slukem 1671.228Slukempostinstall-check: .PHONY 1681.169Slukem @echo " === Post installation checks ===" 1691.250Spavel ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ check; if [ $$? -gt 1 ]; then exit 1; fi 1701.171Slukem @echo " ================================" 1711.171Slukem 1721.228Slukempostinstall-fix: .NOTMAIN .PHONY 1731.171Slukem @echo " === Post installation fixes ===" 1741.239Slukem ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix 1751.212Slukem @echo " ===============================" 1761.212Slukem 1771.228Slukempostinstall-fix-obsolete: .NOTMAIN .PHONY 1781.212Slukem @echo " === Removing obsolete files ===" 1791.239Slukem ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix obsolete 1801.212Slukem @echo " ===============================" 1811.169Slukem 1821.108Serh 1831.193Slukem# 1841.137Stv# Targets (in order!) called by "make build". 1851.193Slukem# 1861.256Sgmcgarry.if defined(HAVE_GCC) 1871.245Smrg.if ${HAVE_GCC} == "3" 1881.220SmrgLIBGCC_EXT=3 1891.245Smrg.else 1901.244SmrgLIBGCC_EXT=4 1911.220Smrg.endif 1921.256Sgmcgarry.endif 1931.123Smrg 1941.156StvBUILDTARGETS+= check-tools 1951.214Slukem.if ${MKUPDATE} == "no" && !defined(NOCLEANDIR) 1961.155StvBUILDTARGETS+= cleandir 1971.155Stv.endif 1981.149Stv.if ${MKOBJDIRS} != "no" 1991.137StvBUILDTARGETS+= obj 2001.123Smrg.endif 2011.138Stv.if ${USETOOLS} == "yes" 2021.152StvBUILDTARGETS+= do-tools 2031.131Stv.endif 2041.137Stv.if !defined(NODISTRIBDIRS) 2051.137StvBUILDTARGETS+= do-distrib-dirs 2061.131Stv.endif 2071.137Stv.if !defined(NOINCLUDES) 2081.137StvBUILDTARGETS+= includes 2091.131Stv.endif 2101.202SthorpejBUILDTARGETS+= do-tools-compat 2111.231SskrllBUILDTARGETS+= do-lib-csu 2121.207Sdrochner.if ${MKGCC} != "no" 2131.249SlukemBUILDTARGETS+= do-libgcc 2141.207Sdrochner.endif 2151.256Sgmcgarry.if ${MKPCC} != "no" 2161.256SgmcgarryBUILDTARGET+= do-libpcc 2171.256Sgmcgarry.endif 2181.231SskrllBUILDTARGETS+= do-lib-libc 2191.253SlukemBUILDTARGETS+= do-lib do-gnu-lib do-external-lib 2201.255SpookaBUILDTARGETS+= do-sys-rump-fs-lib 2211.224SlukemBUILDTARGETS+= do-ld.so 2221.224SlukemBUILDTARGETS+= do-build 2231.257Slukem.if ${MKX11} != "no" || ${MKXORG} != "no" 2241.227SlukemBUILDTARGETS+= do-x11 2251.227Slukem.endif 2261.200SlukemBUILDTARGETS+= do-obsolete 2271.131Stv 2281.193Slukem# 2291.137Stv# Enforce proper ordering of some rules. 2301.193Slukem# 2311.123Smrg 2321.137Stv.ORDER: ${BUILDTARGETS} 2331.228Slukemincludes-lib: .PHONY includes-include includes-sys 2341.228Slukemincludes-gnu: .PHONY includes-lib 2351.123Smrg 2361.193Slukem# 2371.137Stv# Build the system and install into DESTDIR. 2381.193Slukem# 2391.123Smrg 2401.191SlukemSTART_TIME!= date 2411.191Slukem 2421.242Sdslbuild: .PHONY .MAKE 2431.137Stv.if defined(BUILD_DONE) 2441.137Stv @echo "Build already installed into ${DESTDIR}" 2451.137Stv.else 2461.191Slukem @echo "Build started at: ${START_TIME}" 2471.145Stv.for tgt in ${BUILDTARGETS} 2481.232Slukem ${MAKEDIRTARGET} . ${tgt} 2491.145Stv.endfor 2501.232Slukem ${MAKEDIRTARGET} etc install-etc-release 2511.191Slukem @echo "Build started at: ${START_TIME}" 2521.172Sbjh21 @printf "Build finished at: " && date 2531.71Smycroft.endif 2541.160Sthorpej 2551.193Slukem# 2561.160Sthorpej# Build a full distribution, but not a release (i.e. no sets into 2571.193Slukem# ${RELEASEDIR}). "buildworld" enforces a build to ${DESTDIR} != / 2581.193Slukem# 2591.160Sthorpej 2601.242Sdsldistribution buildworld: .PHONY .MAKE 2611.194Slukem.if make(buildworld) && \ 2621.194Slukem (!defined(DESTDIR) || ${DESTDIR} == "" || ${DESTDIR} == "/") 2631.193Slukem @echo "Won't make ${.TARGET} with DESTDIR=/" 2641.193Slukem @false 2651.193Slukem.endif 2661.232Slukem ${MAKEDIRTARGET} . build NOPOSTINSTALL=1 2671.232Slukem ${MAKEDIRTARGET} etc distribution INSTALL_DONE=1 2681.181Sthorpej.if defined(DESTDIR) && ${DESTDIR} != "" && ${DESTDIR} != "/" 2691.232Slukem ${MAKEDIRTARGET} . postinstall-fix-obsolete 2701.232Slukem ${MAKEDIRTARGET} distrib/sets checkflist 2711.181Sthorpej.endif 2721.192Slukem @echo "make ${.TARGET} started at: ${START_TIME}" 2731.185Slukem @printf "make ${.TARGET} finished at: " && date 2741.123Smrg 2751.193Slukem# 2761.193Slukem# Install the distribution from $DESTDIR to $INSTALLWORLDDIR (defaults to `/') 2771.193Slukem# If installing to /, ensures that the host's operating system is NetBSD and 2781.193Slukem# the host's `uname -m` == ${MACHINE}. 2791.193Slukem# 2801.193Slukem 2811.193SlukemHOST_UNAME_S!= uname -s 2821.193SlukemHOST_UNAME_M!= uname -m 2831.193Slukem 2841.242Sdslinstallworld: .PHONY .MAKE 2851.194Slukem.if (!defined(DESTDIR) || ${DESTDIR} == "" || ${DESTDIR} == "/") 2861.193Slukem @echo "Can't make ${.TARGET} to DESTDIR=/" 2871.193Slukem @false 2881.193Slukem.endif 2891.193Slukem.if !defined(INSTALLWORLDDIR) || \ 2901.193Slukem ${INSTALLWORLDDIR} == "" || ${INSTALLWORLDDIR} == "/" 2911.193Slukem.if (${HOST_UNAME_S} != "NetBSD") 2921.193Slukem @echo "Won't cross-make ${.TARGET} from ${HOST_UNAME_S} to NetBSD with INSTALLWORLDDIR=/" 2931.193Slukem @false 2941.193Slukem.endif 2951.193Slukem.if (${HOST_UNAME_M} != ${MACHINE}) 2961.193Slukem @echo "Won't cross-make ${.TARGET} from ${HOST_UNAME_M} to ${MACHINE} with INSTALLWORLDDIR=/" 2971.193Slukem @false 2981.193Slukem.endif 2991.193Slukem.endif 3001.232Slukem ${MAKEDIRTARGET} distrib/sets installsets \ 3011.232Slukem INSTALLDIR=${INSTALLWORLDDIR:U/} INSTALLSETS= 3021.232Slukem ${MAKEDIRTARGET} . postinstall-check DESTDIR=${INSTALLWORLDDIR} 3031.193Slukem @echo "make ${.TARGET} started at: ${START_TIME}" 3041.193Slukem @printf "make ${.TARGET} finished at: " && date 3051.199Slukem 3061.199Slukem# 3071.206Slukem# Create sets from $DESTDIR or $NETBSDSRCDIR into $RELEASEDIR 3081.199Slukem# 3091.199Slukem 3101.241Sapb.for tgt in sets sourcesets syspkgs 3111.242Sdsl${tgt}: .PHONY .MAKE 3121.232Slukem ${MAKEDIRTARGET} distrib/sets ${tgt} 3131.206Slukem.endfor 3141.193Slukem 3151.193Slukem# 3161.240Slukem# Build a release or snapshot (implies "make distribution"). Note that 3171.181Sthorpej# in this case, the set lists will be checked before the tar files 3181.181Sthorpej# are made. 3191.193Slukem# 3201.123Smrg 3211.242Sdslrelease snapshot: .PHONY .MAKE 3221.240Slukem ${MAKEDIRTARGET} . distribution 3231.240Slukem ${MAKEDIRTARGET} etc release DISTRIBUTION_DONE=1 3241.192Slukem @echo "make ${.TARGET} started at: ${START_TIME}" 3251.185Slukem @printf "make ${.TARGET} finished at: " && date 3261.123Smrg 3271.193Slukem# 3281.243Sapb# Create a CD-ROM image. 3291.243Sapb# 3301.243Sapb 3311.243Sapbiso-image: .PHONY 3321.247Sbouyer ${MAKEDIRTARGET} distrib iso_image 3331.243Sapb ${MAKEDIRTARGET} etc iso-image 3341.243Sapb @echo "make ${.TARGET} started at: ${START_TIME}" 3351.243Sapb @printf "make ${.TARGET} finished at: " && date 3361.243Sapb 3371.248Sjnemethiso-image-source: .PHONY 3381.248Sjnemeth ${MAKEDIRTARGET} distrib iso_image CDSOURCE=true 3391.248Sjnemeth ${MAKEDIRTARGET} etc iso-image 3401.248Sjnemeth @echo "make ${.TARGET} started at: ${START_TIME}" 3411.248Sjnemeth @printf "make ${.TARGET} finished at: " && date 3421.248Sjnemeth 3431.243Sapb# 3441.137Stv# Special components of the "make build" process. 3451.193Slukem# 3461.156Stv 3471.228Slukemcheck-tools: .PHONY 3481.223Slukem.if ${TOOLCHAIN_MISSING} != "no" && !defined(EXTERNAL_TOOLCHAIN) 3491.187Sthorpej @echo '*** WARNING: Building on MACHINE=${MACHINE} with missing toolchain.' 3501.187Sthorpej @echo '*** May result in a failed build or corrupt binaries!' 3511.187Sthorpej.elif defined(EXTERNAL_TOOLCHAIN) 3521.187Sthorpej @echo '*** Using external toolchain rooted at ${EXTERNAL_TOOLCHAIN}.' 3531.156Stv.endif 3541.173Ssommerfe.if defined(NBUILDJOBS) 3551.173Ssommerfe @echo '*** WARNING: NBUILDJOBS is obsolete; use -j directly instead!' 3561.173Ssommerfe.endif 3571.123Smrg 3581.242Sdsldo-distrib-dirs: .PHONY .MAKE 3591.147Sjmc.if !defined(DESTDIR) || ${DESTDIR} == "" 3601.232Slukem ${MAKEDIRTARGET} etc distrib-dirs DESTDIR=/ 3611.147Sjmc.else 3621.232Slukem ${MAKEDIRTARGET} etc distrib-dirs DESTDIR=${DESTDIR} 3631.147Sjmc.endif 3641.190Slukem 3651.190Slukem.for targ in cleandir obj includes 3661.228Slukemdo-${targ}: .PHONY ${targ} 3671.190Slukem @true 3681.190Slukem.endfor 3691.123Smrg 3701.256Sgmcgarry.if defined(HAVE_GCC) 3711.256SgmcgarryBUILD_CC_LIB= gnu/lib/crtstuff${LIBGCC_EXT} 3721.256SgmcgarryBUILD_CC_LIB+= gnu/lib/libgcc${LIBGCC_EXT} 3731.256Sgmcgarry.elif defined(HAVE_PCC) 3741.256SgmcgarryBUILD_CC_LIB+= external/bsd/pcc/crtstuff 3751.256SgmcgarryBUILD_CC_LIB+= external/bsd/pcc/libpcc 3761.256Sgmcgarry.endif 3771.256Sgmcgarry 3781.256Sgmcgarry.for dir in tools tools/compat lib/csu ${BUILD_CC_LIB} lib/libc lib/libdes lib gnu/lib external/lib sys/rump/fs/lib 3791.242Sdsldo-${dir:S/\//-/g}: .PHONY .MAKE 3801.137Stv.for targ in dependall install 3811.232Slukem ${MAKEDIRTARGET} ${dir} ${targ} 3821.137Stv.endfor 3831.184Slukem.endfor 3841.184Slukem 3851.249Slukemdo-libgcc: .PHONY .MAKE 3861.256Sgmcgarry.if defined(HAVE_GCC) 3871.249Slukem.if ${MKGCC} != "no" 3881.249Slukem.if (${HAVE_GCC} == "3" || ${HAVE_GCC} == "4") 3891.249Slukem ${MAKEDIRTARGET} . do-gnu-lib-crtstuff${LIBGCC_EXT} 3901.249Slukem.endif 3911.249Slukem ${MAKEDIRTARGET} . do-gnu-lib-libgcc${LIBGCC_EXT} 3921.249Slukem.endif 3931.256Sgmcgarry.endif 3941.256Sgmcgarry 3951.256Sgmcgarrydo-libpcc: .PHONY .MAKE 3961.256Sgmcgarry.if defined(HAVE_PCC) 3971.256Sgmcgarry.if ${MKPCC} != "no" 3981.256Sgmcgarry ${MAKEDIRTARGET} . do-pcc-lib-crtstuff 3991.256Sgmcgarry ${MAKEDIRTARGET} . do-pcc-lib-libpcc 4001.256Sgmcgarry.endif 4011.256Sgmcgarry.endif 4021.249Slukem 4031.242Sdsldo-ld.so: .PHONY .MAKE 4041.184Slukem.for targ in dependall install 4051.189Sitohy.if (${OBJECT_FMT} == "a.out") 4061.232Slukem ${MAKEDIRTARGET} libexec/ld.aout_so ${targ} 4071.189Sitohy.endif 4081.189Sitohy.if (${OBJECT_FMT} == "ELF") 4091.232Slukem ${MAKEDIRTARGET} libexec/ld.elf_so ${targ} 4101.189Sitohy.endif 4111.137Stv.endfor 4121.143Stv 4131.242Sdsldo-build: .PHONY .MAKE 4141.154Stv.for targ in dependall install 4151.232Slukem ${MAKEDIRTARGET} . ${targ} BUILD_tools=no BUILD_lib=no 4161.154Stv.endfor 4171.200Slukem 4181.242Sdsldo-x11: .PHONY .MAKE 4191.254Smrg.if ${MKXORG} != "no" 4201.254Smrg ${MAKEDIRTARGET} external/mit/xorg build 4211.257Slukem.elif ${MKX11} != "no" 4221.257Slukem ${MAKEDIRTARGET} x11 build 4231.254Smrg.else 4241.257Slukem @echo "Neither MKX11 or MKXORG is enabled" 4251.257Slukem @false 4261.254Smrg.endif 4271.227Slukem 4281.242Sdsldo-obsolete: .PHONY .MAKE 4291.232Slukem ${MAKEDIRTARGET} etc install-obsolete-lists 4301.87Scjs 4311.193Slukem# 4321.137Stv# Speedup stubs for some subtrees that don't need to run these rules. 4331.137Stv# (Tells <bsd.subdir.mk> not to recurse for them.) 4341.193Slukem# 4351.129Stv 4361.152Stv.for dir in bin etc distrib games libexec regress sbin usr.sbin tools 4371.228Slukemincludes-${dir}: .PHONY 4381.152Stv @true 4391.152Stv.endfor 4401.152Stv.for dir in etc distrib regress 4411.228Slukeminstall-${dir}: .PHONY 4421.152Stv @true 4431.152Stv.endfor 4441.152Stv 4451.193Slukem# 4461.152Stv# XXX this needs to change when distrib Makefiles are recursion compliant 4471.193Slukem# XXX many distrib subdirs need "cd etc && make snap_pre snap_kern" first... 4481.193Slukem# 4491.228Slukemdependall-distrib depend-distrib all-distrib: .PHONY 4501.136Snathanw @true 4511.130Stv 4521.211Slukem.include <bsd.sys.mk> 4531.151Stv.include <bsd.obj.mk> 4541.209Slukem.include <bsd.kernobj.mk> 4551.146Stv.include <bsd.subdir.mk> 4561.144Stv 4571.228Slukembuild-docs: .PHONY ${.CURDIR}/BUILDING 4581.188Slukem${.CURDIR}/BUILDING: doc/BUILDING.mdoc 4591.230Slukem ${_MKMSG_CREATE} ${.TARGET} 4601.216Slukem ${TOOL_GROFF} -mdoc -Tascii -P-bou $> >$@ 4611.209Slukem 4621.209Slukem 4631.209Slukem# 4641.209Slukem# Display current make(1) parameters 4651.209Slukem# 4661.242Sdslparams: .PHONY .MAKE 4671.232Slukem ${MAKEDIRTARGET} etc params 468