Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tools/compat Use a "find | while read" loop to install all *...
details: https://anonhg.NetBSD.org/src/rev/7b5c42149ea9
branches: trunk
changeset: 783166:7b5c42149ea9
user: apb <apb%NetBSD.org@localhost>
date: Sun Dec 09 15:22:54 2012 +0000
description:
Use a "find | while read" loop to install all *.h files anywhere
under ${.OBJDIR}/include, and remove the previous hack of touching a
"dummy" file in each subdirectory. This should fix a problem on some
platforms where include files directly under ${.OBJDIR}/include (not in
a subdirectory) were not installed.
diffstat:
tools/compat/Makefile | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (25 lines):
diff -r 69470f7b503e -r 7b5c42149ea9 tools/compat/Makefile
--- a/tools/compat/Makefile Sun Dec 09 03:30:00 2012 +0000
+++ b/tools/compat/Makefile Sun Dec 09 15:22:54 2012 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.61 2012/12/02 12:34:51 apb Exp $
+# $NetBSD: Makefile,v 1.62 2012/12/09 15:22:54 apb Exp $
HOSTLIB= nbcompat
@@ -106,12 +106,12 @@
${_MKMSG_INSTALL} "${HOST_INCSDIR}/*"
${HOST_INSTALL_DIR} ${HOST_INCSDIR}
${HOST_INSTALL_DIR} ${HOST_INCSDIR}/compat
- ${HOST_INSTALL_FILE} ${INCFILES} ${HOST_INCSDIR}/compat/
.for _d in ${INCSUBDIRS}
${HOST_INSTALL_DIR} ${HOST_INCSDIR}/compat/${_d}
- touch include/${_d}/dummy # ensure dir is not empty
- ${HOST_INSTALL_FILE} include/${_d}/* ${HOST_INCSDIR}/compat/${_d}/
.endfor
+ (cd include && find . -name '*.h' -print | while read f ; do \
+ ${HOST_INSTALL_FILE} $$f ${HOST_INCSDIR}/compat/$$f ; \
+ done)
# Install defs.mk in ${TOOLDIR}/share/compat
install.defs.mk: .PHONY ${HOST_SHAREDIR}/compat/defs.mk
Home |
Main Index |
Thread Index |
Old Index