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

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

Log Message:
Fix target 'tags'.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/ofppc/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/ofppc/Makefile
diff -u src/sys/arch/ofppc/Makefile:1.6 src/sys/arch/ofppc/Makefile:1.7
--- src/sys/arch/ofppc/Makefile:1.6	Mon Jan  6 17:40:43 2003
+++ src/sys/arch/ofppc/Makefile	Mon Apr  4 19:47:21 2011
@@ -1,4 +1,32 @@
-#	$NetBSD: Makefile,v 1.6 2003/01/06 17:40:43 lukem Exp $
+#	$NetBSD: Makefile,v 1.7 2011/04/04 19:47:21 dyoung Exp $
+
+.include <../powerpc/Makefile.inc>
+
+TOFPPC=	${SYSDIR}/arch/ofppc/tags
+SOFPPC=	${SYSDIR}/arch/ofppc/ofppc/*.[ch] \
+	${SYSDIR}/arch/ofppc/isa/*.[ch] \
+	${SYSDIR}/arch/ofppc/pci/*.[ch] \
+	${SYSDIR}/arch/ofppc/include/*.h
+AOFPPC=	${SYSDIR}/arch/ofppc/ofppc/*.S
+
+DOFPPC=	include
+
+.include "../../kern/Make.tags.inc"
+
+tags:
+	-rm -f ${TOFPPC}
+	-echo ${SOFPPC} ${SPPC} | xargs ctags -wadtf ${TOFPPC}
+	-${FINDCOMM} | xargs ctags -wadtf ${TOFPPC}
+	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AOFPPC} ${APPC} | \
+	    ${TOOL_SED} -e \
+		"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3	\1	/^\2(\3\4$$/;" \
+	    >> ${TOFPPC}
+	sort -o ${TOFPPC} ${TOFPPC}
+
+links:
+	-for i in ${DOFPPC}; do \
+	    cd $$i && rm -f tags; ln -s ../tags tags; done
+
 
 SUBDIR=	compile include stand
 

Reply via email to