Make the 'tags' target produce some useful tags.

This commit is contained in:
dyoung 2008-01-10 07:34:02 +00:00
parent c329a611cb
commit a826619d34
1 changed files with 14 additions and 8 deletions

View File

@ -1,13 +1,17 @@
# $NetBSD: Makefile,v 1.4 2003/04/29 05:42:43 thorpej Exp $ # $NetBSD: Makefile,v 1.5 2008/01/10 07:34:02 dyoung Exp $
# Makefile for evbarm tags file and boot blocks # Makefile for evbarm tags file and boot blocks
TEVBARM= ../evbarm/tags TEVBARM= ${SYSDIR}/arch/evbarm/tags
SEVBARM= ../evbarm/integrator/*.[ch] ../evbarm/include/*.h \ SEVBARM= ${SYSDIR}/arch/arm/xscale/*.[ch] \
../evbarm/dev/*.[ch] ../evbarm/ifpga/*.[ch] \ ${SYSDIR}/arch/evbarm/dev/*.[ch] \
../evbarm/iq80310/*.[ch] \ ${SYSDIR}/arch/evbarm/ifpga/*.[ch] \
../evbarm/integrator_fpga/*.[ch] \ ${SYSDIR}/arch/evbarm/include/*.h \
AEVBARM= ../evbarm/integrator/*.S ../evbarm/ifpga/*.S \ ${SYSDIR}/arch/evbarm/integrator/*.[ch] \
${SYSDIR}/arch/evbarm/iq31244/*.[ch] \
${SYSDIR}/arch/evbarm/iq80310/*.[ch] \
${SYSDIR}/arch/evbarm/iq80321/*.[ch]
AEVBARM= ${SYSDIR}/arch/evbarm/integrator/*.S
# Directories in which to place tags links # Directories in which to place tags links
DEVBARM= include DEVBARM= include
@ -15,7 +19,9 @@ DEVBARM= include
.include "../../kern/Make.tags.inc" .include "../../kern/Make.tags.inc"
tags: tags:
-ctags -wdtf ${TEVBARM} ${SEVBARM} ${COMM} -rm -f ${TEVBARM}
-echo ${SEVBARM} | xargs ctags -wadtf ${TEVBARM}
-${FINDCOMM} | xargs ctags -wadtf ${TEVBARM}
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AEVBARM} | \ egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AEVBARM} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> ${TEVBARM} >> ${TEVBARM}