Add a dependency for Makefile so that when you add device to the Makefile

it will automatically regenerate the device mtree file and cause the ramdisk
to be updated.
This commit is contained in:
matt 2012-07-20 11:19:03 +00:00
parent fc1af45c3d
commit 034cfa7ab5

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.makedev,v 1.16 2012/02/18 14:26:27 njoly Exp $
# $NetBSD: Makefile.makedev,v 1.17 2012/07/20 11:19:03 matt Exp $
#
# Makefile snippet to add ${MAKEDEVTARGETS} devices to the mtree list
# (if set), otherwise copy .OBJDIR-of-etc/MAKEDEV to ./dev
@ -41,7 +41,7 @@ CLEANFILES+= ${MAKEDEVSPEC} ${MAKEDEVSPEC}.tmp
#
MTREECONF+= ${MAKEDEVSPEC}
${MAKEDEVSPEC}: ${MAKEDEVSCRIPT}
${MAKEDEVSPEC}: ${MAKEDEVSCRIPT} Makefile
${_MKTARGET_CREATE}
rm -f ${.TARGET} ${.TARGET}.tmp
MACHINE=${MACHINE:Q} MACHINE_ARCH=${MACHINE_ARCH:Q} \