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

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

Log Message:
Fix target 'tags'.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/netwinder/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/netwinder/Makefile
diff -u src/sys/arch/netwinder/Makefile:1.3 src/sys/arch/netwinder/Makefile:1.4
--- src/sys/arch/netwinder/Makefile:1.3	Sat Oct 25 22:27:38 2008
+++ src/sys/arch/netwinder/Makefile	Mon Apr  4 19:47:00 2011
@@ -1,22 +1,27 @@
-#	$NetBSD: Makefile,v 1.3 2008/10/25 22:27:38 apb Exp $
+#	$NetBSD: Makefile,v 1.4 2011/04/04 19:47:00 dyoung Exp $
 
 # Makefile for netwinder tags file and boot blocks
 
-TNETWINDER=	../netwinder/tags
-SNETWINDER=	../netwinder/netwinder/*.[ch] ../netwinder/include/*.h \
-		../netwinder/isa/*.[ch] ../netwinder/pci/*.[ch]
-ANETWINDER=	../netwinder/netwinder/*.s
+.include <../arm/Makefile.inc>
+
+TNETWINDER=	${SYSDIR}/arch/netwinder/tags
+SNETWINDER=	${SYSDIR}/arch/netwinder/netwinder/*.[ch] \
+		${SYSDIR}/arch/netwinder/include/*.h \
+		${SYSDIR}/arch/netwinder/pci/*.[ch]
+ANETWINDER=	${SYSDIR}/arch/netwinder/netwinder/*.S
 
 # Directories in which to place tags links
-DNETWINDER=	isa pci include
+DNETWINDER=	pci include
 
 .include "../../kern/Make.tags.inc"
 
 tags:
-	-ctags -wdtf ${TNETWINDER} ${SNETWINDER} ${COMM}
-	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ANETWINDER} | \
+	-rm -f ${TNETWINDER}
+	-echo ${SNETWINDER} ${SARM} | xargs ctags -wadtf ${TNETWINDER}
+	-${FINDCOMM} | xargs ctags -wadtf ${TNETWINDER}
+	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ANETWINDER} ${AARM} | \
 	    ${TOOL_SED} -e \
-		"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
+		"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3	\1	/^\2(\3\4$$/;" \
 	    >> ${TNETWINDER}
 	sort -o ${TNETWINDER} ${TNETWINDER}
 

Reply via email to