Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tools Add install.files rule. Tools with support files can u...
details: https://anonhg.NetBSD.org/src/rev/701cf847b5af
branches: trunk
changeset: 515992:701cf847b5af
user: jmc <jmc%NetBSD.org@localhost>
date: Sat Oct 13 06:09:25 2001 +0000
description:
Add install.files rule. Tools with support files can use HOSTFILES and
HOST_FILESDIR to install support files (just like bsd.files.mk normally
would be doing.
diffstat:
tools/Makefile.host | 17 +++++++++++++++--
1 files changed, 15 insertions(+), 2 deletions(-)
diffs (32 lines):
diff -r 557c197569e4 -r 701cf847b5af tools/Makefile.host
--- a/tools/Makefile.host Sat Oct 13 06:06:55 2001 +0000
+++ b/tools/Makefile.host Sat Oct 13 06:09:25 2001 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.host,v 1.1 2001/08/14 11:01:56 tv Exp $
+# $NetBSD: Makefile.host,v 1.2 2001/10/13 06:09:25 jmc Exp $
# Preload <bsd.obj.mk> to set up obj rules (with proper ${.CURDIR}).
.include <bsd.obj.mk>
@@ -32,8 +32,21 @@
.include <bsd.hostprog.mk>
# Install rule.
-realinstall: install.host
+realinstall: install.host install.files
install.host:
mkdir -p ${HOST_BINDIR}
${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -m ${BINMODE} \
${HOSTPROG} ${HOST_BINDIR}/${HOSTPROGNAME}
+
+.if defined(HOSTFILES)
+install.files:
+ mkdir -p ${HOST_FILESDIR}
+ for i in ${HOSTFILES}; \
+ do \
+ ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -m ${NONBINMODE} \
+ ${.CURDIR}/$$i ${HOST_FILESDIR}/$$i; \
+ done
+.else
+install.files:
+.endif
+
Home |
Main Index |
Thread Index |
Old Index