NetBSD/usr.bin/kdump/Makefile.ioctl-c
lukem 130ab7336b Rework how MAKEVERBOSE operates:
*	Don't bother prefixing commands with a line of  ${_MKCMD}\
	and instead rely upon "make -s".  This is less intrusive on
	all the Makefiles than the former.  Idea from David Laight.

    *	Rename the variables use to print messages.  The scheme now is:
	    _MKMSG_FOO		Run  _MKMSG 'foo'
	    _MKTARGET_FOO	Run  _MKMSG_FOO ${.TARGET}
	From discussion with Alistair Crooks.
2003-10-21 10:01:19 +00:00

25 lines
723 B
Makefile

# $NetBSD: Makefile.ioctl-c,v 1.10 2003/10/21 10:01:22 lukem Exp $
# NOTE: <bsd.own.mk> needs to be previously .included for NETBSDSRCDIR
DEPFILEGLOB= ${DESTDIR}/usr/include/sys/*.h \
${DESTDIR}/usr/include/net/*.h \
${DESTDIR}/usr/include/netinet/*.h \
${DESTDIR}/usr/include/crypto/*.h
SEARCHFILES= ${DESTDIR}/usr/include/sys/ioctl.h \
${DESTDIR}/usr/include/sys/ioctl_compat.h \
${DESTDIR}/usr/include/crypto/cryptodev.h
.if !target(cleandir) && !target(obj)
DEPFILES != grep -l '_IO.*(' ${DEPFILEGLOB}
.endif
ioctl.c: mkioctls ${DEPFILES}
${_MKTARGET_CREATE}
CC="${CC}" DESTDIR=${DESTDIR} \
${HOST_SH} ${NETBSDSRCDIR}/usr.bin/kdump/mkioctls \
${SEARCHFILES} > ioctl.c
${DEPFILES}: .PRECIOUS