Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tools/compat handle the list of files and directories genera...
details: https://anonhg.NetBSD.org/src/rev/7cf51ec830dd
branches: trunk
changeset: 783171:7cf51ec830dd
user: christos <christos%NetBSD.org@localhost>
date: Sun Dec 09 21:48:04 2012 +0000
description:
handle the list of files and directories generated dynamically by configure
diffstat:
tools/compat/Makefile | 17 ++++++++++++++---
1 files changed, 14 insertions(+), 3 deletions(-)
diffs (45 lines):
diff -r f3f858dc2cc7 -r 7cf51ec830dd tools/compat/Makefile
--- a/tools/compat/Makefile Sun Dec 09 21:30:02 2012 +0000
+++ b/tools/compat/Makefile Sun Dec 09 21:48:04 2012 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.64 2012/12/09 19:15:48 christos Exp $
+# $NetBSD: Makefile,v 1.65 2012/12/09 21:48:04 christos Exp $
.include <bsd.own.mk>
@@ -76,7 +76,11 @@
@touch ${.TARGET}
INCFILES= nbtool_config.h
-INCSUBDIRS= sys machine rpc arpa
+# Generate the list of include files generated by configure the ./ is so that
+# the list is not empty.
+_INCCONFFILES!= cd include && find . -name '*.h' && echo ./
+INCCONFFILES= ${_INCCONFFILES:S@./@@}
+INCSUBDIRS= ${INCCONFFILES:H:O:u:N.}
CLEANDIRFILES+= ${INCFILES}
# CLEANDIRFILES may not contain directory names
@@ -92,7 +96,7 @@
HOST_LIBDIR= ${TOOLDIR}/lib
HOST_INCSDIR= ${TOOLDIR}/include
-HOST_SHAREDIR= ${TOOLDIR}/share
+HOST_SHAREDIR= ${TOOLDIR}/share
install: .PHONY install.lib includes install.defs.mk
@@ -110,6 +114,13 @@
${HOST_INSTALL_FILE} ${.ALLSRC} ${.TARGET}
.endfor
+.for _f in ${INCCONFFILES}
+HOST_INCINSTFILES+= ${HOST_INCSDIR}/compat/${_f}
+${HOST_INCSDIR}/compat/${_f}: include/${_f}
+ ${_MKTARGET_INSTALL}
+ ${HOST_INSTALL_FILE} ${.ALLSRC} ${.TARGET}
+.endfor
+
.for _d in ${INCSUBDIRS}
HOST_INCINSTDIRS+= ${HOST_INCSDIR}/compat/${_d}
${HOST_INCSDIR}/compat/${_d}:
Home |
Main Index |
Thread Index |
Old Index