Module Name:    src
Committed By:   dyoung
Date:           Wed Apr  6 01:43:14 UTC 2011

Modified Files:
        src/sys/arch/sbmips: Makefile

Log Message:
Fix target 'tags'.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/sbmips/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/sbmips/Makefile
diff -u src/sys/arch/sbmips/Makefile:1.3 src/sys/arch/sbmips/Makefile:1.4
--- src/sys/arch/sbmips/Makefile:1.3	Mon Jan  6 17:40:47 2003
+++ src/sys/arch/sbmips/Makefile	Wed Apr  6 01:43:13 2011
@@ -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
 

Reply via email to