NetBSD/usr.bin/kdump/Makefile.ioctl-c
2006-08-27 20:31:26 +00:00

21 lines
611 B
Makefile

# $NetBSD: Makefile.ioctl-c,v 1.18 2006/08/27 20:31:26 christos Exp $
# NOTE: <bsd.own.mk> needs to be previously .included for NETBSDSRCDIR
DEPFILEGLOB= ${DESTDIR}/usr/include/*/*.h ${DESTDIR}/usr/include/*/*/*.h
.if !make(cleandir) && !make(obj) && !make(includes)
DEPFILES != egrep -l '(_IO\(|_IOR\(|_IOW\(|_IOWR\()' ${DEPFILEGLOB}
.endif
${PROG}-ioctl.c: mkioctls Makefile ${DEPFILES}
${_MKTARGET_CREATE}
CC="${CC}" DESTDIR=${DESTDIR} \
${HOST_SH} ${NETBSDSRCDIR}/usr.bin/kdump/mkioctls \
${DEPFILES} >${.TARGET}
SRCS+= ${PROG}-ioctl.c
CLEANFILES+= ${PROG}-ioctl.c
${DEPFILES}: .PRECIOUS