Make the 'tags' target produce some useful tags.
This commit is contained in:
parent
c329a611cb
commit
a826619d34
|
@ -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
|
||||
|
||||
TEVBARM= ../evbarm/tags
|
||||
SEVBARM= ../evbarm/integrator/*.[ch] ../evbarm/include/*.h \
|
||||
../evbarm/dev/*.[ch] ../evbarm/ifpga/*.[ch] \
|
||||
../evbarm/iq80310/*.[ch] \
|
||||
../evbarm/integrator_fpga/*.[ch] \
|
||||
AEVBARM= ../evbarm/integrator/*.S ../evbarm/ifpga/*.S \
|
||||
TEVBARM= ${SYSDIR}/arch/evbarm/tags
|
||||
SEVBARM= ${SYSDIR}/arch/arm/xscale/*.[ch] \
|
||||
${SYSDIR}/arch/evbarm/dev/*.[ch] \
|
||||
${SYSDIR}/arch/evbarm/ifpga/*.[ch] \
|
||||
${SYSDIR}/arch/evbarm/include/*.h \
|
||||
${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
|
||||
DEVBARM= include
|
||||
|
@ -15,7 +19,9 @@ DEVBARM= include
|
|||
.include "../../kern/Make.tags.inc"
|
||||
|
||||
tags:
|
||||
-ctags -wdtf ${TEVBARM} ${SEVBARM} ${COMM}
|
||||
-rm -f ${TEVBARM}
|
||||
-echo ${SEVBARM} | xargs ctags -wadtf ${TEVBARM}
|
||||
-${FINDCOMM} | xargs ctags -wadtf ${TEVBARM}
|
||||
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AEVBARM} | \
|
||||
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
|
||||
>> ${TEVBARM}
|
||||
|
|
Loading…
Reference in New Issue