Module Name:    src
Committed By:   dyoung
Date:           Mon Apr  4 19:45:00 UTC 2011

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

Log Message:
Fix target 'tags'.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/cobalt/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/cobalt/Makefile
diff -u src/sys/arch/cobalt/Makefile:1.5 src/sys/arch/cobalt/Makefile:1.6
--- src/sys/arch/cobalt/Makefile:1.5	Sat Oct 25 22:27:37 2008
+++ src/sys/arch/cobalt/Makefile	Mon Apr  4 19:45:00 2011
@@ -1,14 +1,16 @@
-#	$NetBSD: Makefile,v 1.5 2008/10/25 22:27:37 apb Exp $
+#	$NetBSD: Makefile,v 1.6 2011/04/04 19:45:00 dyoung Exp $
 
 # Makefile for cobalt tags file
 
 # Find where mips source files are for inclusion in tags
 .include <../mips/Makefile.inc>
 
-TCOBALT=	../cobalt/tags
-SCOBALT=	../cobalt/cobalt/*.[ch] ../cobalt/include/*.h \
-		../cobalt/dev/*.[ch] ../cobalt/pci/*.[ch]
-ACOBALT=	../cobalt/cobalt/*.S
+TCOBALT=	${SYSDIR}/arch/cobalt/tags
+SCOBALT=	${SYSDIR}/arch/cobalt/cobalt/*.[ch] \
+		${SYSDIR}/arch/cobalt/include/*.h \
+		${SYSDIR}/arch/cobalt/dev/*.[ch] \
+		${SYSDIR}/arch/cobalt/pci/*.[ch]
+ACOBALT=	${SYSDIR}/arch/cobalt/cobalt/*.S
 
 # Directories in which to place tags links
 DCOBALT=	pci include
@@ -16,7 +18,9 @@
 .include "../../kern/Make.tags.inc"
 
 tags:
-	-ctags -wdtf ${TCOBALT} ${SCOBALT} ${SMIPS} ${COMM}
+	-rm -f ${TCOBALT}
+	-echo ${SCOBALT} ${SMIPS} | xargs ctags -wadtf ${TCOBALT}
+	-${FINDCOMM} | xargs ctags -wadtf ${TCOBALT}
 	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ACOBALT} ${AMIPS} | \
 	    ${TOOL_SED} -e \
 		"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \

Reply via email to