1 |
|
# |
2 |
|
# $FreeBSD: src/Makefile,v 1.319.2.2 2006/01/07 19:40:08 netchild Exp $ |
3 |
< |
# $MidnightBSD: src/Makefile,v 1.7 2007/01/19 02:22:11 laffer1 Exp $ |
3 |
> |
# $MidnightBSD: src/Makefile,v 1.8 2008/10/05 21:14:01 laffer1 Exp $ |
4 |
|
# |
5 |
|
# The user-driven targets are: |
6 |
|
# |
76 |
|
# developer convenience only. They are intentionally not documented and |
77 |
|
# completely subject to change without notice. |
78 |
|
# |
79 |
+ |
# For more information, see the build(7) manual page. |
80 |
+ |
# |
81 |
|
TGTS= all all-man buildenv buildenvvars buildkernel buildworld \ |
82 |
|
check-old check-old-dirs check-old-files check-old-libs \ |
83 |
|
checkdpadd clean cleandepend cleandir \ |
280 |
|
@echo "--------------------------------------------------------------" |
281 |
|
.for target in ${TARGETS} |
282 |
|
KERNCONFS!= cd ${.CURDIR}/sys/${target}/conf && \ |
283 |
< |
find [A-Z]*[A-Z] -type f -maxdepth 0 \ |
283 |
> |
find [A-Z0-9]*[A-Z0-9] -type f -maxdepth 0 \ |
284 |
|
! -name DEFAULTS ! -name LINT |
285 |
|
KERNCONFS:= ${KERNCONFS:S/^NOTES$/LINT/} |
286 |
|
universe: universe_${target} |
287 |
|
.ORDER: universe_prologue universe_${target} universe_epilogue |
288 |
|
universe_${target}: |
289 |
+ |
.if !defined(MAKE_JUST_KERNELS) |
290 |
|
@echo ">> ${target} started on `LC_ALL=C date`" |
291 |
< |
-cd ${.CURDIR} && ${MAKE} ${JFLAG} buildworld \ |
291 |
> |
@(cd ${.CURDIR} && env __MAKE_CONF=/dev/null \ |
292 |
> |
${MAKE} ${JFLAG} buildworld \ |
293 |
|
TARGET=${target} \ |
294 |
< |
__MAKE_CONF=/dev/null \ |
295 |
< |
> _.${target}.buildworld 2>&1 |
294 |
> |
> _.${target}.buildworld 2>&1 || \ |
295 |
> |
echo "${target} world failed," \ |
296 |
> |
"check _.${target}.buildworld for details") |
297 |
|
@echo ">> ${target} buildworld completed on `LC_ALL=C date`" |
298 |
+ |
.endif |
299 |
|
.if exists(${.CURDIR}/sys/${target}/conf/NOTES) |
300 |
< |
-cd ${.CURDIR}/sys/${target}/conf && ${MAKE} LINT \ |
301 |
< |
> ${.CURDIR}/_.${target}.makeLINT 2>&1 |
300 |
> |
@(cd ${.CURDIR}/sys/${target}/conf && env __MAKE_CONF=/dev/null \ |
301 |
> |
${MAKE} LINT > ${.CURDIR}/_.${target}.makeLINT 2>&1 || \ |
302 |
> |
echo "${target} 'make LINT' failed," \ |
303 |
> |
"check _.${target}.makeLINT for details") |
304 |
|
.endif |
305 |
|
.for kernel in ${KERNCONFS} |
306 |
< |
-cd ${.CURDIR} && ${MAKE} ${JFLAG} buildkernel \ |
306 |
> |
@(cd ${.CURDIR} && env __MAKE_CONF=/dev/null \ |
307 |
> |
${MAKE} ${JFLAG} buildkernel \ |
308 |
|
TARGET=${target} \ |
309 |
|
KERNCONF=${kernel} \ |
310 |
< |
__MAKE_CONF=/dev/null \ |
311 |
< |
> _.${target}.${kernel} 2>&1 |
310 |
> |
> _.${target}.${kernel} 2>&1 || \ |
311 |
> |
echo "${target} ${kernel} kernel failed," \ |
312 |
> |
"check _.${target}.${kernel} for details") |
313 |
|
.endfor |
314 |
|
@echo ">> ${target} completed on `LC_ALL=C date`" |
315 |
|
.endfor |