automake
[Top][All Lists]
Advanced

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

Re: [PATCH] add cscope tags target


From: Jesse Barnes
Subject: Re: [PATCH] add cscope tags target
Date: Wed, 14 Jul 2004 17:58:14 -0400
User-agent: KMail/1.6.2

On Wednesday, July 14, 2004 4:56 pm, Jesse Barnes wrote:
> On Wednesday, July 14, 2004 4:40 pm, Bob Friesenhahn wrote:
> > It should be no different than other recursive Automake rules (e.g.
> > 'dist').  Each Makefile.am would concatenate its own source file list
> > to a 'cscope.files' in the top level of the build directory. Once the
> > rule in all the Makefile.am's has been executed, cscope would be
> > executed.  In fact, I think that the existing 'make dist' is the best
> > example of this because it is pretty similar.
>
> Ooh, distdirs is a complex target.  I'll see what I can come up with, but
> if you beat me to it that's perfectly ok :)

Here's what I've got so far.  It's broken and I have a few questions:

  - what's if %?SUBDIRS% ... endif for?  I've seen it used elsewhere, and 
comments that say it's not allowed.

  - is there a better way to do what I'm doing with
      $(MAKE) ... reldir=$$subdir cscopedirs
    ?  the cscope.files file in $(top_builddir) needs to have paths relative 
to $(top_srcdir) (and, come to think of it, my current approach doesn't deal 
with that at all)

  - when I run automake to recreate my makefiles, some directories are missing 
'cscopedir' rules, how can I check for that?

Thanks,
Jesse

Attachment: automake-cscope-tags-2.patch
Description: Text Data


reply via email to

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