| version 1.231, 2004/02/15 19:52:27 |
version 1.232, 2004/04/13 12:43:12 |
|
|
| .if exists(regress) |
.if exists(regress) |
| regression-tests: .PHONY |
regression-tests: .PHONY |
| @echo Running regression tests... |
@echo Running regression tests... |
| @(cd ${.CURDIR}/regress && ${MAKE} regress) |
${MAKEDIRTARGET} regress regress |
| .endif |
.endif |
| |
|
| .if ${MKUNPRIVED} != "no" |
.if ${MKUNPRIVED} != "no" |
| Line 134 NOPOSTINSTALL= # defined |
|
| Line 134 NOPOSTINSTALL= # defined |
|
| |
|
| afterinstall: .PHONY |
afterinstall: .PHONY |
| .if ${MKMAN} != "no" |
.if ${MKMAN} != "no" |
| (cd ${.CURDIR}/share/man && ${MAKE} makedb) |
${MAKEDIRTARGET} share/man makedb |
| .endif |
.endif |
| .if (${MKUNPRIVED} != "no" && ${MKINFO} != "no") |
.if (${MKUNPRIVED} != "no" && ${MKINFO} != "no") |
| (cd ${.CURDIR}/gnu/usr.bin/texinfo/install-info && ${MAKE} infodir-meta) |
${MAKEDIRTARGET} gnu/usr.bin/texinfo/install-info infodir-meta |
| .endif |
.endif |
| .if !defined(NOPOSTINSTALL) |
.if !defined(NOPOSTINSTALL) |
| (cd ${.CURDIR} && ${MAKE} postinstall-check) |
${MAKEDIRTARGET} . postinstall-check |
| .endif |
.endif |
| |
|
| postinstall-check: .PHONY |
postinstall-check: .PHONY |
|
|
| .else |
.else |
| @echo "Build started at: ${START_TIME}" |
@echo "Build started at: ${START_TIME}" |
| .for tgt in ${BUILDTARGETS} |
.for tgt in ${BUILDTARGETS} |
| @(cd ${.CURDIR} && ${MAKE} ${tgt}) |
${MAKEDIRTARGET} . ${tgt} |
| .endfor |
.endfor |
| (cd ${.CURDIR}/etc && ${MAKE} install-etc-release) |
${MAKEDIRTARGET} etc install-etc-release |
| @echo "Build started at: ${START_TIME}" |
@echo "Build started at: ${START_TIME}" |
| @printf "Build finished at: " && date |
@printf "Build finished at: " && date |
| .endif |
.endif |
| Line 239 distribution buildworld: .PHONY |
|
| Line 239 distribution buildworld: .PHONY |
|
| @echo "Won't make ${.TARGET} with DESTDIR=/" |
@echo "Won't make ${.TARGET} with DESTDIR=/" |
| @false |
@false |
| .endif |
.endif |
| (cd ${.CURDIR} && ${MAKE} NOPOSTINSTALL=1 build) |
${MAKEDIRTARGET} . build NOPOSTINSTALL=1 |
| (cd ${.CURDIR}/etc && ${MAKE} INSTALL_DONE=1 distribution) |
${MAKEDIRTARGET} etc distribution INSTALL_DONE=1 |
| .if defined(DESTDIR) && ${DESTDIR} != "" && ${DESTDIR} != "/" |
.if defined(DESTDIR) && ${DESTDIR} != "" && ${DESTDIR} != "/" |
| (cd ${.CURDIR} && ${MAKE} postinstall-fix-obsolete) |
${MAKEDIRTARGET} . postinstall-fix-obsolete |
| (cd ${.CURDIR}/distrib/sets && ${MAKE} checkflist) |
${MAKEDIRTARGET} distrib/sets checkflist |
| .endif |
.endif |
| @echo "make ${.TARGET} started at: ${START_TIME}" |
@echo "make ${.TARGET} started at: ${START_TIME}" |
| @printf "make ${.TARGET} finished at: " && date |
@printf "make ${.TARGET} finished at: " && date |
| Line 273 installworld: .PHONY |
|
| Line 273 installworld: .PHONY |
|
| @false |
@false |
| .endif |
.endif |
| .endif |
.endif |
| (cd ${.CURDIR}/distrib/sets && \ |
${MAKEDIRTARGET} distrib/sets installsets \ |
| ${MAKE} INSTALLDIR=${INSTALLWORLDDIR:U/} INSTALLSETS= installsets) |
INSTALLDIR=${INSTALLWORLDDIR:U/} INSTALLSETS= |
| (cd ${.CURDIR} && \ |
${MAKEDIRTARGET} . postinstall-check DESTDIR=${INSTALLWORLDDIR} |
| ${MAKE} DESTDIR=${INSTALLWORLDDIR} postinstall-check) |
|
| @echo "make ${.TARGET} started at: ${START_TIME}" |
@echo "make ${.TARGET} started at: ${START_TIME}" |
| @printf "make ${.TARGET} finished at: " && date |
@printf "make ${.TARGET} finished at: " && date |
| |
|
| Line 286 installworld: .PHONY |
|
| Line 285 installworld: .PHONY |
|
| |
|
| .for tgt in sets sourcesets |
.for tgt in sets sourcesets |
| ${tgt}: .PHONY |
${tgt}: .PHONY |
| (cd ${.CURDIR}/distrib/sets && ${MAKE} $@) |
${MAKEDIRTARGET} distrib/sets ${tgt} |
| .endfor |
.endfor |
| |
|
| # |
# |
|
|
| # |
# |
| |
|
| release snapshot: .PHONY |
release snapshot: .PHONY |
| (cd ${.CURDIR} && ${MAKE} NOPOSTINSTALL=1 build) |
${MAKEDIRTARGET} . build NOPOSTINSTALL=1 |
| (cd ${.CURDIR}/etc && ${MAKE} INSTALL_DONE=1 release) |
${MAKEDIRTARGET} etc release INSTALL_DONE=1 |
| @echo "make ${.TARGET} started at: ${START_TIME}" |
@echo "make ${.TARGET} started at: ${START_TIME}" |
| @printf "make ${.TARGET} finished at: " && date |
@printf "make ${.TARGET} finished at: " && date |
| |
|
| Line 318 check-tools: .PHONY |
|
| Line 317 check-tools: .PHONY |
|
| |
|
| do-distrib-dirs: .PHONY |
do-distrib-dirs: .PHONY |
| .if !defined(DESTDIR) || ${DESTDIR} == "" |
.if !defined(DESTDIR) || ${DESTDIR} == "" |
| (cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs) |
${MAKEDIRTARGET} etc distrib-dirs DESTDIR=/ |
| .else |
.else |
| (cd ${.CURDIR}/etc && ${MAKE} DESTDIR=${DESTDIR} distrib-dirs) |
${MAKEDIRTARGET} etc distrib-dirs DESTDIR=${DESTDIR} |
| .endif |
.endif |
| |
|
| .for targ in cleandir obj includes |
.for targ in cleandir obj includes |
| Line 331 do-${targ}: .PHONY ${targ} |
|
| Line 330 do-${targ}: .PHONY ${targ} |
|
| .for dir in tools tools/compat lib/csu gnu/lib/libgcc${LIBGCC_EXT} lib/libc lib/libdes lib gnu/lib |
.for dir in tools tools/compat lib/csu gnu/lib/libgcc${LIBGCC_EXT} lib/libc lib/libdes lib gnu/lib |
| do-${dir:S/\//-/g}: .PHONY |
do-${dir:S/\//-/g}: .PHONY |
| .for targ in dependall install |
.for targ in dependall install |
| (cd ${.CURDIR}/${dir} && ${MAKE} ${targ}) |
${MAKEDIRTARGET} ${dir} ${targ} |
| .endfor |
.endfor |
| .endfor |
.endfor |
| |
|
| do-ld.so: .PHONY |
do-ld.so: .PHONY |
| .for targ in dependall install |
.for targ in dependall install |
| .if (${OBJECT_FMT} == "a.out") |
.if (${OBJECT_FMT} == "a.out") |
| (cd ${.CURDIR}/libexec/ld.aout_so && ${MAKE} ${targ}) |
${MAKEDIRTARGET} libexec/ld.aout_so ${targ} |
| .endif |
.endif |
| .if (${OBJECT_FMT} == "ELF") |
.if (${OBJECT_FMT} == "ELF") |
| (cd ${.CURDIR}/libexec/ld.elf_so && ${MAKE} ${targ}) |
${MAKEDIRTARGET} libexec/ld.elf_so ${targ} |
| .endif |
.endif |
| .endfor |
.endfor |
| |
|
| do-build: .PHONY |
do-build: .PHONY |
| .for targ in dependall install |
.for targ in dependall install |
| (cd ${.CURDIR} && ${MAKE} ${targ} BUILD_tools=no BUILD_lib=no) |
${MAKEDIRTARGET} . ${targ} BUILD_tools=no BUILD_lib=no |
| .endfor |
.endfor |
| |
|
| do-x11: .PHONY |
do-x11: .PHONY |
| (cd ${.CURDIR}/x11 && ${MAKE} build) |
${MAKEDIRTARGET} x11 build |
| |
|
| do-obsolete: .PHONY |
do-obsolete: .PHONY |
| (cd ${.CURDIR}/etc && ${MAKE} install-obsolete-lists) |
${MAKEDIRTARGET} etc install-obsolete-lists |
| |
|
| # |
# |
| # Speedup stubs for some subtrees that don't need to run these rules. |
# Speedup stubs for some subtrees that don't need to run these rules. |
| Line 392 ${.CURDIR}/BUILDING: doc/BUILDING.mdoc |
|
| Line 391 ${.CURDIR}/BUILDING: doc/BUILDING.mdoc |
|
| # Display current make(1) parameters |
# Display current make(1) parameters |
| # |
# |
| params: .PHONY |
params: .PHONY |
| (cd ${.CURDIR}/etc && ${MAKE} params) |
${MAKEDIRTARGET} etc params |