PROG_DRIVERS=
PROG_COMMANDS= mount fsck.mfs sh service
PROG_SERVERS= mfs
-PROG_USRSBIN=
PROG_BIN=
+PROG_SBIN=
+PROG_USR.BIN=
+PROG_USR.SBIN=
.if ${MACHINE_ARCH} == "i386"
ETC+= rs.single
PROG_DRIVERS+= at_wini floppy pci
PROG_COMMANDS+= cdprobe loadramdisk sysenv
PROG_SERVERS+= procfs
-PROG_USRSBIN+= pwd_mkdb
+PROG_USR.SBIN+= pwd_mkdb
.if ${MKSMALL} != "yes"
RAMDISK_SMALL= 1
PROG_LIBS+= libc libminlib libcompat_minix libterminfo
.endif
-PROGRAMS=${PROG_DRIVERS} ${PROG_COMMANDS} ${PROG_SERVERS} \
- ${PROG_USRSBIN} ${PROG_BIN} ${PROG_LIBEXEC}
+PROGRAMS=${PROG_COMMANDS} \
+ ${PROG_BIN} ${PROG_SBIN} ${PROG_USR.BIN} ${PROG_USR.SBIN} \
+ ${PROG_DRIVERS} ${PROG_SERVERS} \
+ ${PROG_LIBEXEC}
CPPFLAGS+= -I${NETBSDSRCDIR}/servers
# Generate dependencies rules for binaries
dir.sh:= ash
-.for srcdir in bin commands drivers libexec servers
+.for srcdir in bin sbin commands drivers libexec servers usr.bin usr.sbin
.for prog in ${PROG_${srcdir:tu}}
${prog}: ${PROGROOT}/${srcdir}/${dir.${prog}:U${prog}}/${prog}
${INSTALL} $> $@
.endfor # prog
.endfor # srcdir
-# We have to do this as a separate loop, because USR.SBIN is not a valid
-# make variable name.
-.for prog in ${PROG_USRSBIN}
-${prog}: ${PROGROOT}/usr.sbin/${dir.${prog}:U${prog}}/${prog}
- ${INSTALL} $> $@
-
-${PROGROOT}/usr.sbin/${dir.${prog}:U${prog}}/${prog}:
- ${MAKE} -C ${NETBSDSRCDIR}/usr.sbin/${dir.${prog}:U${prog}} all
-.endfor
-
image: proto.gen ${ETC} ${EXTRA} pwd.db spwd.db passwd
${_MKMSG_CREATE} "Generating ramdisk image"
${TOOL_MKFSMFS} image proto.gen || { rm -f image; false; }