Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-6]: src/share/termcap Pull up revision 1.25 (requested by itoju...
details: https://anonhg.NetBSD.org/src/rev/d42e4a105d67
branches: netbsd-1-6
changeset: 527653:d42e4a105d67
user: tv <tv%NetBSD.org@localhost>
date: Thu May 30 23:59:37 2002 +0000
description:
Pull up revision 1.25 (requested by itojun in ticket #100):
have bsd.endian.mk, which detects target endian.
generate *.db in target endian. (see tech-userlevel for discussions)
diffstat:
share/termcap/Makefile | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 98eb7f0082ae -r d42e4a105d67 share/termcap/Makefile
--- a/share/termcap/Makefile Thu May 30 23:59:29 2002 +0000
+++ b/share/termcap/Makefile Thu May 30 23:59:37 2002 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23.2.1 2002/05/30 23:50:51 tv Exp $
+# $NetBSD: Makefile,v 1.23.2.2 2002/05/30 23:59:37 tv Exp $
# from: @(#)Makefile 8.1 (Berkeley) 6/8/93
MAN= termcap.5
@@ -9,8 +9,16 @@
FILESNAME_termcap.src=termcap
FILESDIR=${BINDIR}/misc
-# there's no issue in endianness as DB keys are ascii strings.
+.include <bsd.endian.mk>
+.if ${TARGET_ENDIANNESS} == "1234"
+TARGET_ENDIANNESS= -l
+.elif ${TARGET_ENDIANNESS} == "4321"
+TARGET_ENDIANNESS= -b
+.else
+TARGET_ENDIANNESS=
+.endif
+
termcap.db: termcap.src
- ${CAP_MKDB} -f termcap ${.ALLSRC}
+ ${CAP_MKDB} ${TARGET_ENDIANNESS} -f termcap ${.ALLSRC}
.include <bsd.prog.mk>
Home |
Main Index |
Thread Index |
Old Index