5 .if ${MKUPDATE} == "no" && !defined(NOCLEANDIR)
6 BUILDTARGETS+= cleandir
8 .if ${MKOBJDIRS} != "no"
11 BUILDTARGETS+= do-tools
12 .if !defined(NOINCLUDES)
13 BUILDTARGETS+= includes
16 BUILDTARGETS+= do-build
18 .ORDER: ${BUILDTARGETS}
22 build: check_EXTSRCSRCDIR
23 @echo "extsrc build started at: ${START_TIME}"
24 .for tgt in ${BUILDTARGETS}
25 ${MAKEDIRTARGET} . ${tgt}
27 @echo "extsrc build started at: ${START_TIME}"
28 @printf "extsrc build finished at: " && date
31 .for targ in dependall install
32 ${MAKEDIRTARGET} . ${targ}
36 .for dir in ${SUBDIR_TOOLS}
37 ${MAKEDIRTARGET} . do-${dir:S/\//-/g}
41 .for dir in ${SUBDIR_LIB}
42 ${MAKEDIRTARGET} . do-${dir:S/\//-/g}
45 .for dir in ${SUBDIR_TOOLS} ${SUBDIR_LIB}
47 . for targ in dependall install
48 ${MAKEDIRTARGET} ${dir} ${targ}
54 ${MAKEDIRTARGET} ${NETBSDSRCDIR}/share/man makedb \
55 WHATISDBDIR=${EXTSRCMANDIR}
58 # XXX how to decide this?
62 distribution: check_EXTSRCSRCDIR
63 .for tgt in ${DISTRIBTARGETS}
64 ${MAKEDIRTARGET} ${tgt} configinstall
68 check_EXTSRCSRCDIR: .PHONY .NOTMAIN
69 .if !defined(EXTSRCSRCDIR)
71 @echo "ERROR: setenv EXTSRCSRCDIR before doing that!"
77 .include <bsd.subdir.mk>