[Top][All Lists]

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

Re: Sending header files to etags

From: Alexandre Duret-Lutz
Subject: Re: Sending header files to etags
Date: Tue, 04 Feb 2003 19:06:55 +0100
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu)

>>> "Alan" == Alan Gutierrez <address@hidden> writes:

 Alan> bin_PROGRAMS = foo

 Alan> foo_SOURCES = \
 Alan> src/foo/foo.hpp \
 Alan> src/foo/foo.cpp

 Alan> automake correctly determines the foo.hpp dependency for building foo,
 Alan> but doesn't feed foo.hpp to etags.

% make tags
tags=; \
here=`pwd`; \
list='src/foo/foo.hpp src/foo/foo.cpp    '; \
unique=`for i in $list; do \
    if test -f "$i"; then echo $i; else echo ./$i; fi; \
  done | \
  gawk '    { files[$0] = 1; } \
       END { for (i in files) print i; }'`; \
test -z "$tags$unique" \
  || etags    \
     $tags $unique

Looks like it works for me. 
Which version of Automake are you complaining about?
Alexandre Duret-Lutz

reply via email to

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