Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sbmips Fix target 'tags'.
details: https://anonhg.NetBSD.org/src/rev/8f6403347399
branches: trunk
changeset: 763867:8f6403347399
user: dyoung <dyoung%NetBSD.org@localhost>
date: Wed Apr 06 01:43:13 2011 +0000
description:
Fix target 'tags'.
diffstat:
sys/arch/sbmips/Makefile | 33 ++++++++++++++++++++++++++++++++-
1 files changed, 32 insertions(+), 1 deletions(-)
diffs (40 lines):
diff -r 092a47046860 -r 8f6403347399 sys/arch/sbmips/Makefile
--- a/sys/arch/sbmips/Makefile Wed Apr 06 01:37:59 2011 +0000
+++ b/sys/arch/sbmips/Makefile Wed Apr 06 01:43:13 2011 +0000
@@ -1,4 +1,35 @@
-# $NetBSD: Makefile,v 1.3 2003/01/06 17:40:47 lukem Exp $
+# $NetBSD: Makefile,v 1.4 2011/04/06 01:43:13 dyoung Exp $
+
+# Makefile for sbmips tags file and boot blocks
+
+# Find where mips source files are for inclusion in tags
+.include <../mips/Makefile.inc>
+
+# XXX ! fix this
+TSBMIPS= ${SYSDIR}/arch/sbmips/tags
+SSBMIPS= ${SYSDIR}/arch/sbmips/sbmips/*.[ch]
+SSBMIPS+= ${SYSDIR}/arch/sbmips/include/*.h
+ASBMIPS= ${SYSDIR}/arch/sbmips/sbmips/*.S
+
+# Directories in which to place tags links
+DSBMIPS= sbmips include
+
+.include "../../kern/Make.tags.inc"
+
+tags:
+ -rm -f ${TSBMIPS}
+ -echo ${SSBMIPS} ${SMIPS} | xargs ctags -wadtf ${TSBMIPS}
+ -${FINDCOMM} | xargs ctags -wadtf ${TSBMIPS}
+ egrep "^LEAF(.*)|^[AN]LEAF(.*)|^NON_LEAF(.*)" ${ASBMIPS} ${AMIPS} | \
+ ${TOOL_SED} -e \
+ "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
+ >> ${TSBMIPS}
+ sort -o ${TSBMIPS} ${TSBMIPS}
+
+links:
+ -for i in ${DSBMIPS}; do \
+ cd $$i && rm -f tags; ln -s ../tags tags; done
+
SUBDIR= compile include stand
Home |
Main Index |
Thread Index |
Old Index