NetBSD/usr.bin/kdump/Makefile.ioctl-c
hannken aa9b145692 Don't invoke the egrep for cleandir and obj targets. Needed for build.sh.
Use ".if !make()" instead of ".if !target()".
2004-04-23 12:05:53 +00:00

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