18 lines
496 B
Makefile
18 lines
496 B
Makefile
# $NetBSD: Makefile.ioctl-c,v 1.14 2004/04/23 12:05:53 hannken Exp $
|
|
|
|
# NOTE: <bsd.own.mk> needs to be previously .included for NETBSDSRCDIR
|
|
|
|
DEPFILEGLOB= ${DESTDIR}/usr/include/*/*.h
|
|
|
|
.if !make(cleandir) && !make(obj)
|
|
DEPFILES != egrep -l '(_IO\(|_IOR\(|_IOW\(|_IORW\()' ${DEPFILEGLOB}
|
|
.endif
|
|
|
|
ioctl.c: mkioctls Makefile ${DEPFILES}
|
|
${_MKTARGET_CREATE}
|
|
CC="${CC}" DESTDIR=${DESTDIR} \
|
|
${HOST_SH} ${NETBSDSRCDIR}/usr.bin/kdump/mkioctls \
|
|
${DEPFILES} > ioctl.c
|
|
|
|
${DEPFILES}: .PRECIOUS
|