This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: Sending header files to etags
- From: Alexandre Duret-Lutz <duret_g at lrde dot epita dot fr>
- To: ajglist at izzy dot net
- Cc: automake at gnu dot org
- Date: Tue, 04 Feb 2003 19:06:55 +0100
- Subject: Re: Sending header files to etags
- References: <200301301851.17934.ajglist@izzy.net>
>>> "Alan" == Alan Gutierrez <ajglist@izzy.net> 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