Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc Make it possible for ctags to be a host tool.



details:   https://anonhg.NetBSD.org/src/rev/3c93633821b3
branches:  trunk
changeset: 521496:3c93633821b3
user:      tv <tv%NetBSD.org@localhost>
date:      Thu Jan 31 19:13:12 2002 +0000

description:
Make it possible for ctags to be a host tool.

diffstat:

 lib/libc/Makefile |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r 7593542084ed -r 3c93633821b3 lib/libc/Makefile
--- a/lib/libc/Makefile Thu Jan 31 19:12:43 2002 +0000
+++ b/lib/libc/Makefile Thu Jan 31 19:13:12 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.100 2001/12/28 01:32:38 lukem Exp $
+#      $NetBSD: Makefile,v 1.101 2002/01/31 19:13:12 tv Exp $
 #      @(#)Makefile    8.2 (Berkeley) 2/3/94
 #
 # All library objects contain sccsid strings by default; they may be
@@ -122,9 +122,11 @@
        for i in ${KMSRCS}; do rm -f ${LIBKERN}/arch/${ARCHSUBDIR}/$$i; done
 .endif
 
+CTAGS?=                ctags
+
 realall: ${.OBJDIR}/tags
 ${.OBJDIR}/tags: ${SRCS}
-       ctags -w ${.ALLSRC:M*.c}
+       ${CTAGS} -w ${.ALLSRC:M*.c}
        egrep "^ENTRY(.*)|^FUNC(.*)|^SYSCALL(.*)" /dev/null ${.ALLSRC:M*.S} | \
            sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
            >> ${.TARGET}; sort -o ${.TARGET} ${.TARGET}



Home | Main Index | Thread Index | Old Index