Module Name:    src
Committed By:   uebayasi
Date:           Sat Apr  6 13:48:12 UTC 2013

Modified Files:
        src/usr.bin/kdump: Makefile.ioctl-c

Log Message:
* Don't re-generate kdump-ioctl.c during install.
* Don't expand hundreds of *.h paths into a variable and command-line in !=.
  Lazily handle it the glob instead.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/usr.bin/kdump/Makefile.ioctl-c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/kdump/Makefile.ioctl-c
diff -u src/usr.bin/kdump/Makefile.ioctl-c:1.24 src/usr.bin/kdump/Makefile.ioctl-c:1.25
--- src/usr.bin/kdump/Makefile.ioctl-c:1.24	Thu Apr  4 22:35:28 2013
+++ src/usr.bin/kdump/Makefile.ioctl-c	Sat Apr  6 13:48:12 2013
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.ioctl-c,v 1.24 2013/04/04 22:35:28 dsl Exp $
+#	$NetBSD: Makefile.ioctl-c,v 1.25 2013/04/06 13:48:12 uebayasi Exp $
 
 # NOTE: <bsd.own.mk> needs to be previously .included for NETBSDSRCDIR
 
@@ -15,9 +15,9 @@ SETFILES:= ${SETFILES} ${SETBASE}/${md}
 .endif
 .endfor
 
-.if !make(cleandir) && !make(obj) && !make(includes)
-DEPFILEGLOB != ${TOOL_SED} -ne '/\/usr\/include\/.*\.h[ 	]/{s/[ 	]obsolete$$//;t' -e 's/xenio//;t' -e 's,\.\([^ 	]*\).*,${DESTDIR}\1,;p;}' ${SETFILES}
-DEPFILES != egrep -l '(_IO\(|_IOR\(|_IOW\(|_IOWR\()' ${DEPFILEGLOB} 2>/dev/null || :
+.if !make(cleandir) && !make(obj) && !make(includes) && !make(install)
+DEPFILEGLOB = ${TOOL_SED} -ne '/\/usr\/include\/.*\.h[ 	]/{s/[ 	]obsolete$$//;t' -e 's/xenio//;t' -e 's,\.\([^ 	]*\).*,${DESTDIR}\1,;p;}' ${SETFILES}
+DEPFILES != ${DEPFILEGLOB} | xargs egrep -l '(_IO\(|_IOR\(|_IOW\(|_IOWR\()' 2>/dev/null || :
 .endif
 
 ${PROG}-ioctl.c: mkioctls Makefile ${DEPFILES} ${SETFILES}

Reply via email to