automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can 'make ctags' create tags in top_builddir?


From: Ralf Wildenhues
Subject: Re: Can 'make ctags' create tags in top_builddir?
Date: Sat, 25 Jul 2009 11:59:46 +0200
User-agent: Mutt/1.5.20 (2009-06-15)

* Rhys Ulerich wrote on Tue, Jul 21, 2009 at 02:56:37PM CEST:
> >> Could the ctags -a argument (or some other mechanism) be used to
> >> simulate the inclusion mechanism?
> >
> > AFAIK there is no such mechanism in ctags files, nor in vi or its clones
> > who read tags files.
> 
> It may be possible to use ctags' -a/--append option here.  Maybe having
> 'make ctags' run in $top_builddir do something like rm -f $top_builddir/ctags.
> After that, the 'make ctags' target in all subdirectories appends to
> $top_builddir/ctags using 'ctags -a $top_builddir/ctags'.
> 
> If that vague description sounds useful, I'll take a pass at getting it 
> working.
> Let me know.  If that's not something you think generally useful, I'm happy to
> stick to ctags -R for my own work.

TBH, I'm not sure either what would be the best way.

Can you try out if it works well with emacs' ctags implementation?
What if the package in question is so large that the user might not want
to point her editor at a package-wide tags file, but rather at one in a
subdirectory which only points to symbols within that tree?  This is
especially helpful if other parts of the source tree contain the same
set of symbols, too.

Thanks,
Ralf




reply via email to

[Prev in Thread] Current Thread [Next in Thread]