version 1.9, 2004/01/01 14:34:24 |
version 1.13.14.1, 2008/05/18 12:29:34 |
|
|
# $NetBSD$ |
# $NetBSD$ |
# |
# |
# Makefile snippet to add ${MAKEDEVTARGETS} devices to the mtree list |
# Makefile snippet to add ${MAKEDEVTARGETS} devices to the mtree list |
# (if set), otherwise copy .OJBDIR-of-etc/MAKEDEV to ./dev |
# (if set), otherwise copy .OBJDIR-of-etc/MAKEDEV to ./dev |
# |
# |
# If this is to be used with Makefile.image, then this file should be |
# If this is to be used with Makefile.image, then this file should be |
# .include-d first. |
# .include-d first. |
Line 42 CLEANFILES+= ${MAKEDEVSPEC} ${MAKEDEVSPE |
|
Line 42 CLEANFILES+= ${MAKEDEVSPEC} ${MAKEDEVSPE |
|
MTREECONF+= ${MAKEDEVSPEC} |
MTREECONF+= ${MAKEDEVSPEC} |
|
|
${MAKEDEVSPEC}: ${MAKEDEVSCRIPT} |
${MAKEDEVSPEC}: ${MAKEDEVSCRIPT} |
|
${_MKTARGET_CREATE} |
-rm -f ${.TARGET} ${.TARGET}.tmp |
-rm -f ${.TARGET} ${.TARGET}.tmp |
MACHINE=${MACHINE:Q} MACHINE_ARCH=${MACHINE_ARCH:Q} \ |
MACHINE=${MACHINE:Q} MACHINE_ARCH=${MACHINE_ARCH:Q} \ |
${HOST_SH} ${MAKEDEVSCRIPT} -s ${MAKEDEVTARGETS} \ |
${HOST_SH} ${MAKEDEVSCRIPT} -s ${MAKEDEVTARGETS} \ |
| sed -e 's,^\.,./dev,' > ${.TARGET}.tmp \ |
| sed -e '/^\. type=dir/d' -e 's,^\.,./dev,' > ${.TARGET}.tmp \ |
&& sort -o ${.TARGET} ${.TARGET}.tmp |
&& sort -o ${.TARGET} ${.TARGET}.tmp |
|
|
.else # ! MAKEDEVTARGETS |
.else # ! MAKEDEVTARGETS |