Makefile revision 1.294
1#	$NetBSD: Makefile,v 1.294 2012/08/14 12:19:16 apb Exp $
2
3#
4# This is the top-level makefile for building NetBSD. For an outline of
5# how to build a snapshot or release, as well as other release engineering
6# information, see http://www.NetBSD.org/developers/releng/index.html
7#
8# Not everything you can set or do is documented in this makefile. In
9# particular, you should review the files in /usr/share/mk (especially
10# bsd.README) for general information on building programs and writing
11# Makefiles within this structure, and see the comments in src/etc/Makefile
12# for further information on installation and release set options.
13#
14# Variables listed below can be set on the make command line (highest
15# priority), in /etc/mk.conf (middle priority), or in the environment
16# (lowest priority).
17#
18# Variables:
19#   DESTDIR is the target directory for installation of the compiled
20#	software. It defaults to /. Note that programs are built against
21#	libraries installed in DESTDIR.
22#   MKMAN, if `no', will prevent building of manual pages.
23#   MKOBJDIRS, if not `no', will build object directories at
24#	an appropriate point in a build.
25#   MKSHARE, if `no', will prevent building and installing
26#	anything in /usr/share.
27#   MKUPDATE, if not `no', will avoid a `make cleandir' at the start of
28#	`make build', as well as having the effects listed in
29#	/usr/share/mk/bsd.README.
30#   NOCLEANDIR, if defined, will avoid a `make cleandir' at the start
31#	of the `make build'.
32#   NOINCLUDES will avoid the `make includes' usually done by `make build'.
33#
34#   See mk.conf(5) for more details.
35#
36#
37# Targets:
38#   build:
39#	Builds a full release of NetBSD in DESTDIR, except for the
40#	/etc configuration files.
41#	If BUILD_DONE is set, this is an empty target.
42#   distribution:
43#	Builds a full release of NetBSD in DESTDIR, including the /etc
44#	configuration files.
45#   buildworld:
46#	As per `make distribution', except that it ensures that DESTDIR
47#	is not the root directory.
48#   installworld:
49#	Install the distribution from DESTDIR to INSTALLWORLDDIR (which
50#	defaults to the root directory).  Ensures that INSTALLWORLDDIR
51#	is not the root directory if cross compiling.
52#   release:
53#	Does a `make distribution', and then tars up the DESTDIR files
54#	into ${RELEASEDIR}/${RELEASEMACHINEDIR}, in release(7) format.
55#	(See etc/Makefile for more information on this.)
56#   regression-tests:
57#	Runs the regression tests in "regress" on this host.
58#   sets:
59#	Populate ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/sets
60#	from ${DESTDIR}
61#   sourcesets:
62#	Populate ${RELEASEDIR}/source/sets from ${NETBSDSRCDIR}
63#   syspkgs:
64#	Populate ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/syspkgs
65#	from ${DESTDIR}
66#   iso-image:
67#	Create CD-ROM image in RELEASEDIR/iso.
68#	RELEASEDIR must already have been populated by `make release'
69#	or equivalent.
70#   iso-image-source:
71#	Create CD-ROM image with source in RELEASEDIR/iso.
72#	RELEASEDIR must already have been populated by
73#	`make release sourcesets' or equivalent.
74#   live-image:
75#	Create bootable live image for emulators or USB stick etc.
76#	in RELEASEDIR/liveimage.
77#	RELEASEDIR must already have been populated by `make release'
78#	or equivalent.
79#   install-image:
80#	Create bootable installation image for USB stick etc.
81#	in RELEASEDIR/installimage.
82#	RELEASEDIR must already have been populated by `make release'
83#	or equivalent.
84#
85# Targets invoked by `make build,' in order:
86#   cleandir:        cleans the tree.
87#   do-top-obj:      creates the top level object directory.
88#   do-tools-obj:    creates object directories for the host toolchain.
89#   do-tools:        builds host toolchain.
90#   obj:             creates object directories.
91#   do-distrib-dirs: creates the distribution directories.
92#   includes:        installs include files.
93#   do-tools-compat: builds the "libnbcompat" library; needed for some
94#                    random host tool programs in the source tree.
95#   do-lib-csu:      builds and installs prerequisites from lib/csu.
96#   do-libgcc:       builds and installs prerequisites from
97#                    gnu/lib/crtstuff${LIBGCC_EXT} (if necessary) and
98#                    gnu/lib/libgcc${LIBGCC_EXT}.
99#   do-libpcc:       builds and install prerequisites from
100#                    external/bsd/pcc/crtstuff (if necessary) and
101#                    external/bsd/pcc/libpcc.
102#   do-lib-libc:     builds and installs prerequisites from lib/libc.
103#   do-lib:          builds and installs prerequisites from lib.
104#   do-sys-rump-dev-lib: builds and installs prerequisites from sys/rump/dev/lib
105#   do-sys-rump-fs-lib:  builds and installs prerequisites from sys/rump/fs/lib
106#   do-sys-rump-kern-lib:  builds and installs prereq. from sys/rump/kern/lib
107#   do-sys-rump-net-lib: builds and installs prerequisites from sys/rump/net/lib
108#   do-sys-modules:  builds and installs kernel modules (used by rump binaries)
109#   do-ld.so:        builds and installs prerequisites from libexec/ld.*_so.
110#   do-compat-lib-csu: builds and installs prerequisites from compat/lib/csu
111#                    if ${MKCOMPAT} != "no".
112#   do-compat-libgcc: builds and installs prerequisites from
113#                    compat/gnu/lib/crtstuff${LIBGCC_EXT} (if necessary) and
114#                    compat/gnu/lib/libgcc${LIBGCC_EXT} if ${MKCOMPAT} != "no".
115#   do-compat-lib-libc: builds and installs prerequisites from compat/lib/libc
116#                    if ${MKCOMPAT} != "no".
117#   do-build:        builds and installs the entire system.
118#   do-x11:          builds and installs X11 if ${MKX11} != "no"; either
119#                    X11R7 from src/external/mit/xorg if ${X11FLAVOUR} == "Xorg"
120#                    or X11R6 from src/x11
121#   do-extsrc:       builds and installs extsrc if ${MKEXTSRC} != "no".
122#   do-obsolete:     installs the obsolete sets (for the postinstall-* targets).
123#
124
125.if ${.MAKEFLAGS:M${.CURDIR}/share/mk} == ""
126.MAKEFLAGS: -m ${.CURDIR}/share/mk
127.endif
128
129#
130# If _SRC_TOP_OBJ_ gets set here, we will end up with a directory that may
131# not be the top level objdir, because "make obj" can happen in the *middle*
132# of "make build" (long after <bsd.own.mk> is calculated it).  So, pre-set
133# _SRC_TOP_OBJ_ here so it will not be added to ${.MAKEOVERRIDES}.
134#
135_SRC_TOP_OBJ_=
136
137.include <bsd.own.mk>
138
139#
140# Sanity check: make sure that "make build" is not invoked simultaneously
141# with a standard recursive target.
142#
143
144.if make(build) || make(release) || make(snapshot)
145.for targ in ${TARGETS:Nobj:Ncleandir}
146.if make(${targ}) && !target(.BEGIN)
147.BEGIN:
148	@echo 'BUILD ABORTED: "make build" and "make ${targ}" are mutually exclusive.'
149	@false
150.endif
151.endfor
152.endif
153
154#
155# _SUBDIR is used to set SUBDIR, after removing directories that have
156# BUILD_${dir}=no, or that have no ${dir}/Makefile.
157#
158_SUBDIR=	tools lib include gnu external crypto/external bin games
159_SUBDIR+=	libexec sbin usr.bin
160_SUBDIR+=	usr.sbin share rescue sys etc tests compat .WAIT distrib regress
161
162.for dir in ${_SUBDIR}
163.if "${dir}" == ".WAIT" \
164	|| (${BUILD_${dir}:Uyes} != "no" && exists(${dir}/Makefile))
165SUBDIR+=	${dir}
166.endif
167.endfor
168
169.if exists(regress)
170regression-tests: .PHONY .MAKE
171	@echo Running regression tests...
172	${MAKEDIRTARGET} regress regress
173.endif
174
175.if ${MKUNPRIVED} != "no"
176NOPOSTINSTALL=	# defined
177.endif
178
179afterinstall: .PHONY .MAKE
180.if ${MKMAN} != "no"
181	${MAKEDIRTARGET} share/man makedb
182.endif
183.if (${MKUNPRIVED} != "no" && ${MKINFO} != "no")
184	${MAKEDIRTARGET} gnu/usr.bin/texinfo/install-info infodir-meta
185.endif
186.if !defined(NOPOSTINSTALL)
187	${MAKEDIRTARGET} . postinstall-check
188.endif
189
190_POSTINSTALL=	${.CURDIR}/usr.sbin/postinstall/postinstall
191
192postinstall-check: .PHONY
193	@echo "   === Post installation checks ==="
194	AWK=${TOOL_AWK:Q} MAKE=${MAKE:Q} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ check; if [ $$? -gt 1 ]; then exit 1; fi
195	@echo "   ================================"
196
197postinstall-fix: .NOTMAIN .PHONY
198	@echo "   === Post installation fixes ==="
199	AWK=${TOOL_AWK:Q} MAKE=${MAKE:Q} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix
200	@echo "   ==============================="
201
202postinstall-fix-obsolete: .NOTMAIN .PHONY
203	@echo "   === Removing obsolete files ==="
204	AWK=${TOOL_AWK:Q} MAKE=${MAKE:Q} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix obsolete
205	@echo "   ==============================="
206
207
208#
209# Targets (in order!) called by "make build".
210#
211.if defined(HAVE_GCC)
212.if ${HAVE_GCC} == "4"
213LIBGCC_EXT=4
214BUILD_CC_LIB_BASEDIR= gnu/lib
215BUILD_CC_LIB_BASETARGET= gnu-lib
216.else
217LIBGCC_EXT=
218BUILD_CC_LIB_BASEDIR= external/gpl3/gcc/lib
219BUILD_CC_LIB_BASETARGET= external-gpl3-gcc-lib
220.endif
221.endif
222
223BUILDTARGETS+=	check-tools
224.if ${MKUPDATE} == "no" && !defined(NOCLEANDIR)
225BUILDTARGETS+=	cleandir
226.endif
227.if ${MKOBJDIRS} != "no"
228BUILDTARGETS+=	do-top-obj
229.endif
230.if ${USETOOLS} == "yes"	# {
231.if ${MKOBJDIRS} != "no"
232BUILDTARGETS+=	do-tools-obj
233.endif
234BUILDTARGETS+=	do-tools
235.endif # USETOOLS		# }
236.if ${MKOBJDIRS} != "no"
237BUILDTARGETS+=	obj
238.endif
239BUILDTARGETS+=	clean_METALOG
240.if !defined(NODISTRIBDIRS)
241BUILDTARGETS+=	do-distrib-dirs
242.endif
243.if !defined(NOINCLUDES)
244BUILDTARGETS+=	includes
245.endif
246BUILDTARGETS+=	do-tools-compat
247BUILDTARGETS+=	do-lib-csu
248.if ${MKGCC} != "no"
249BUILDTARGETS+=	do-libgcc
250.endif
251.if ${MKPCC} != "no"
252BUILDTARGET+=	do-libpcc
253.endif
254BUILDTARGETS+=	do-lib-libc
255BUILDTARGETS+=	do-lib
256.if ${MKKMOD} != "no"
257BUILDTARGETS+=	do-sys-modules
258.endif
259.if ${MKRUMP} != "no"
260BUILDTARGETS+=	do-sys-rump-dev-lib do-sys-rump-fs-lib
261BUILDTARGETS+=	do-sys-rump-kern-lib do-sys-rump-net-lib
262.endif
263.if ${MKCOMPAT} != "no"
264BUILDTARGETS+=	do-compat-lib-csu
265BUILDTARGETS+=	do-compat-libgcc
266BUILDTARGETS+=	do-compat-lib-libc
267.endif
268BUILDTARGETS+=	do-ld.so
269BUILDTARGETS+=	do-build
270.if ${MKX11} != "no"
271BUILDTARGETS+=	do-x11
272.endif
273.if ${MKEXTSRC} != "no"
274BUILDTARGETS+=	do-extsrc
275.endif
276BUILDTARGETS+=	do-obsolete
277
278#
279# Enforce proper ordering of some rules.
280#
281
282.ORDER:		${BUILDTARGETS}
283includes-lib:	.PHONY includes-include includes-sys
284includes-gnu:	.PHONY includes-lib
285
286#
287# Build the system and install into DESTDIR.
288#
289
290START_TIME!=	date
291
292build: .PHONY .MAKE
293.if defined(BUILD_DONE)
294	@echo "Build already installed into ${DESTDIR}"
295.else
296	@echo "Build started at: ${START_TIME}"
297.for tgt in ${BUILDTARGETS}
298	${MAKEDIRTARGET} . ${tgt}
299.endfor
300	${MAKEDIRTARGET} etc install-etc-release
301	@echo   "Build started at:  ${START_TIME}"
302	@printf "Build finished at: " && date
303.endif
304
305#
306# Build a full distribution, but not a release (i.e. no sets into
307# ${RELEASEDIR}).  "buildworld" enforces a build to ${DESTDIR} != /
308#
309
310distribution buildworld: .PHONY .MAKE
311.if make(buildworld) && \
312    (!defined(DESTDIR) || ${DESTDIR} == "" || ${DESTDIR} == "/")
313	@echo "Won't make ${.TARGET} with DESTDIR=/"
314	@false
315.endif
316	${MAKEDIRTARGET} . build NOPOSTINSTALL=1
317	${MAKEDIRTARGET} etc distribution INSTALL_DONE=1
318.if defined(DESTDIR) && ${DESTDIR} != "" && ${DESTDIR} != "/"
319	${MAKEDIRTARGET} . postinstall-fix-obsolete
320	${MAKEDIRTARGET} distrib/sets checkflist
321.endif
322	@echo   "make ${.TARGET} started at:  ${START_TIME}"
323	@printf "make ${.TARGET} finished at: " && date
324
325#
326# Install the distribution from $DESTDIR to $INSTALLWORLDDIR (defaults to `/')
327# If installing to /, ensures that the host's operating system is NetBSD and
328# the host's `uname -m` == ${MACHINE}.
329#
330
331HOST_UNAME_S!=	uname -s
332HOST_UNAME_M!=	uname -m
333
334installworld: .PHONY .MAKE
335.if (!defined(DESTDIR) || ${DESTDIR} == "" || ${DESTDIR} == "/")
336	@echo "Can't make ${.TARGET} to DESTDIR=/"
337	@false
338.endif
339.if !defined(INSTALLWORLDDIR) || \
340    ${INSTALLWORLDDIR} == "" || ${INSTALLWORLDDIR} == "/"
341.if (${HOST_UNAME_S} != "NetBSD")
342	@echo "Won't cross-make ${.TARGET} from ${HOST_UNAME_S} to NetBSD with INSTALLWORLDDIR=/"
343	@false
344.endif
345.if (${HOST_UNAME_M} != ${MACHINE})
346	@echo "Won't cross-make ${.TARGET} from ${HOST_UNAME_M} to ${MACHINE} with INSTALLWORLDDIR=/"
347	@false
348.endif
349.endif
350	${MAKEDIRTARGET} distrib/sets installsets \
351		INSTALLDIR=${INSTALLWORLDDIR:U/} INSTALLSETS=${INSTALLSETS:Q}
352	${MAKEDIRTARGET} . postinstall-check DESTDIR=${INSTALLWORLDDIR}
353	@echo   "make ${.TARGET} started at:  ${START_TIME}"
354	@printf "make ${.TARGET} finished at: " && date
355
356#
357# Install modules from $DESTDIR to $INSTALLMODULESDIR
358#
359installmodules: .PHONY .MAKE
360.if (!defined(DESTDIR) || ${DESTDIR} == "" || ${DESTDIR} == "/")
361	@echo "Can't make ${.TARGET} to DESTDIR=/"
362	@false
363.endif
364.if !defined(INSTALLMODULESDIR) || \
365    ${INSTALLMODULESDIR} == "" || ${INSTALLMODULESDIR} == "/"
366.if (${HOST_UNAME_S} != "NetBSD")
367	@echo "Won't cross-make ${.TARGET} from ${HOST_UNAME_S} to NetBSD with INSTALLMODULESDIR=/"
368	@false
369.endif
370.if (${HOST_UNAME_M} != ${MACHINE})
371	@echo "Won't cross-make ${.TARGET} from ${HOST_UNAME_M} to ${MACHINE} with INSTALLMODULESDIR=/"
372	@false
373.endif
374.endif
375	${MAKEDIRTARGET} sys/modules install DESTDIR=${INSTALLMODULESDIR:U/}
376	@echo   "make ${.TARGET} started at:  ${START_TIME}"
377	@printf "make ${.TARGET} finished at: " && date
378
379#
380# Create sets from $DESTDIR or $NETBSDSRCDIR into $RELEASEDIR
381#
382
383.for tgt in sets sourcesets syspkgs
384${tgt}: .PHONY .MAKE
385	${MAKEDIRTARGET} distrib/sets ${tgt}
386.endfor
387
388#
389# Build a release or snapshot (implies "make distribution").  Note that
390# in this case, the set lists will be checked before the tar files
391# are made.
392#
393
394release snapshot: .PHONY .MAKE
395	${MAKEDIRTARGET} . distribution
396	${MAKEDIRTARGET} etc release DISTRIBUTION_DONE=1
397	@echo   "make ${.TARGET} started at:  ${START_TIME}"
398	@printf "make ${.TARGET} finished at: " && date
399
400#
401# Create a CD-ROM image.
402#
403
404iso-image: .PHONY
405	${MAKEDIRTARGET} distrib iso_image
406	${MAKEDIRTARGET} etc iso-image
407	@echo   "make ${.TARGET} started at:  ${START_TIME}"
408	@printf "make ${.TARGET} finished at: " && date
409
410iso-image-source: .PHONY
411	${MAKEDIRTARGET} distrib iso_image CDSOURCE=true
412	${MAKEDIRTARGET} etc iso-image
413	@echo   "make ${.TARGET} started at:  ${START_TIME}"
414	@printf "make ${.TARGET} finished at: " && date
415
416#
417# Create bootable live images.
418#
419
420live-image: .PHONY
421	${MAKEDIRTARGET} etc live-image
422	@echo   "make ${.TARGET} started at:  ${START_TIME}"
423	@printf "make ${.TARGET} finished at: " && date
424
425#
426# Create bootable installation images.
427#
428
429install-image: .PHONY
430	${MAKEDIRTARGET} etc install-image
431	@echo   "make ${.TARGET} started at:  ${START_TIME}"
432	@printf "make ${.TARGET} finished at: " && date
433
434#
435# Special components of the "make build" process.
436#
437
438check-tools: .PHONY
439.if ${TOOLCHAIN_MISSING} != "no" && !defined(EXTERNAL_TOOLCHAIN)
440	@echo '*** WARNING:  Building on MACHINE=${MACHINE} with missing toolchain.'
441	@echo '*** May result in a failed build or corrupt binaries!'
442.elif defined(EXTERNAL_TOOLCHAIN)
443	@echo '*** Using external toolchain rooted at ${EXTERNAL_TOOLCHAIN}.'
444.endif
445.if defined(NBUILDJOBS)
446	@echo '*** WARNING: NBUILDJOBS is obsolete; use -j directly instead!'
447.endif
448
449# Delete or sanitise a leftover METALOG from a previous build.
450clean_METALOG: .PHONY .MAKE
451.if ${MKUPDATE} != "no"
452	${MAKEDIRTARGET} distrib/sets clean_METALOG
453.endif
454
455do-distrib-dirs: .PHONY .MAKE
456.if !defined(DESTDIR) || ${DESTDIR} == ""
457	${MAKEDIRTARGET} etc distrib-dirs DESTDIR=/
458.else
459	${MAKEDIRTARGET} etc distrib-dirs DESTDIR=${DESTDIR}
460.endif
461
462.for targ in cleandir obj includes
463do-${targ}: .PHONY ${targ}
464	@true
465.endfor
466
467.if defined(HAVE_GCC)
468.if ${USE_COMPILERCRTSTUFF} == "yes"
469BUILD_CC_LIB= ${BUILD_CC_LIB_BASEDIR}/crtstuff${LIBGCC_EXT}
470.endif
471BUILD_CC_LIB+= ${BUILD_CC_LIB_BASEDIR}/libgcc${LIBGCC_EXT}
472.elif defined(HAVE_PCC)
473BUILD_CC_LIB+= external/bsd/pcc/crtstuff
474BUILD_CC_LIB+= external/bsd/pcc/libpcc
475.endif
476
477.for dir in tools tools/compat lib/csu ${BUILD_CC_LIB} lib/libc lib sys/rump/dev/lib sys/rump/fs/lib sys/rump/kern/lib sys/rump/net/lib sys/modules
478do-${dir:S/\//-/g}: .PHONY .MAKE
479.for targ in dependall install
480	${MAKEDIRTARGET} ${dir} ${targ}
481.endfor
482.endfor
483
484.if ${MKCOMPAT} != "no"
485COMPAT_SUBDIR_LIST=lib/csu ${BUILD_CC_LIB} lib/libc
486.for dir in ${COMPAT_SUBDIR_LIST}
487do-compat-${dir:S/\//-/g}: .PHONY .MAKE
488.for targ in dependall install
489	${MAKEDIRTARGET} compat ${targ} BOOTSTRAP_SUBDIRS="../../../${dir}"
490.endfor
491.endfor
492.endif
493
494do-top-obj: .PHONY .MAKE
495	${MAKEDIRTARGET} . obj NOSUBDIR=
496
497do-tools-obj: .PHONY .MAKE
498	${MAKEDIRTARGET} tools obj
499
500do-libgcc: .PHONY .MAKE
501.if defined(HAVE_GCC)
502.if ${MKGCC} != "no"
503.if ${USE_COMPILERCRTSTUFF} == "yes"
504	${MAKEDIRTARGET} . do-${BUILD_CC_LIB_BASETARGET}-crtstuff${LIBGCC_EXT}
505.endif
506	${MAKEDIRTARGET} . do-${BUILD_CC_LIB_BASETARGET}-libgcc${LIBGCC_EXT}
507.endif
508.endif
509
510do-compat-libgcc: .PHONY .MAKE
511.if defined(HAVE_GCC)
512.if ${MKGCC} != "no"
513.if ${USE_COMPILERCRTSTUFF} == "yes"
514	${MAKEDIRTARGET} . do-compat-${BUILD_CC_LIB_BASETARGET}-crtstuff${LIBGCC_EXT}
515.endif
516	${MAKEDIRTARGET} . do-compat-${BUILD_CC_LIB_BASETARGET}-libgcc${LIBGCC_EXT}
517.endif
518.endif
519
520do-libpcc: .PHONY .MAKE
521.if defined(HAVE_PCC)
522.if ${MKPCC} != "no"
523.if ${USE_COMPILERCRTSTUFF} == "yes"
524	${MAKEDIRTARGET} . do-pcc-lib-crtstuff
525.endif
526	${MAKEDIRTARGET} . do-pcc-lib-libpcc
527.endif
528.endif
529
530do-ld.so: .PHONY .MAKE
531.for targ in dependall install
532	${MAKEDIRTARGET} libexec/ld.elf_so ${targ}
533.endfor
534
535do-build: .PHONY .MAKE
536.for targ in dependall install
537	${MAKEDIRTARGET} . ${targ} BUILD_tools=no BUILD_lib=no
538.endfor
539
540do-x11: .PHONY .MAKE
541.if ${MKX11} != "no"
542.if ${X11FLAVOUR} == "Xorg"
543	${MAKEDIRTARGET} external/mit/xorg build
544.else
545	${MAKEDIRTARGET} x11 build
546.endif
547.else
548	@echo "MKX11 is not enabled"
549	@false
550.endif
551
552do-extsrc: .PHONY .MAKE
553.if ${MKEXTSRC} != "no"
554	${MAKEDIRTARGET} extsrc build
555.else
556	@echo "MKEXTSRC is not enabled"
557	@false
558.endif
559
560do-obsolete: .PHONY .MAKE
561	${MAKEDIRTARGET} etc install-obsolete-lists
562
563#
564# Speedup stubs for some subtrees that don't need to run these rules.
565# (Tells <bsd.subdir.mk> not to recurse for them.)
566#
567
568.for dir in bin etc distrib games libexec regress sbin usr.bin usr.sbin tools
569includes-${dir}: .PHONY
570	@true
571.endfor
572.for dir in etc distrib regress
573install-${dir}: .PHONY
574	@true
575.endfor
576
577#
578# XXX this needs to change when distrib Makefiles are recursion compliant
579# XXX many distrib subdirs need "cd etc && make snap_pre snap_kern" first...
580#
581dependall-distrib depend-distrib all-distrib: .PHONY
582	@true
583
584.include <bsd.sys.mk>
585.include <bsd.obj.mk>
586.include <bsd.kernobj.mk>
587.include <bsd.subdir.mk>
588
589#
590# Display current make(1) parameters
591#
592params: .PHONY .MAKE
593	${MAKEDIRTARGET} etc params
594