[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
even `if FALSE' *_SOURCES should be used for TAGS
From: |
Jan Kratochvil |
Subject: |
even `if FALSE' *_SOURCES should be used for TAGS |
Date: |
Mon, 11 Oct 2010 21:25:00 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Hi,
it came on now on the binutils mailing list:
`make tags' will not index sources which are listed in *_SOURCES += ... in
unsatisfied AM_CONDITIONAL blocks. IMO they should be. Sure one can use some
EXTRA_*_SOURCES out of the `if' block but this delocalizes+duplicates the
information making error prone for future modifications.
OTOH AM_CONDITIONAL can be used for example if an optional sources part is
/ is not bundled, in such case the current automake behavior is better.
Posting here for a consideration as asked about by Ralf Wildenhues.
Thanks,
Jan
automake-1.11.1-5.fc14.noarch
autoconf-2.66-2.fc14.noarch
make tags
list='b.c '; \
- `c.c' is missing here!
==> Makefile.am <==
bin_PROGRAMS = a
a_SOURCES = b.c
AUTOMAKE_OPTIONS = foreign
if F
a_SOURCES += c.c
endif F
==> b.c <==
int main (void) { return 0; }
==> c.c <==
void f (void) {}
==> configure.ac <==
AC_INIT(a, 1.0)
AM_INIT_AUTOMAKE
AM_CONDITIONAL(F, false)
AC_PROG_CC
AC_CONFIG_FILES(Makefile)
AC_OUTPUT
- even `if FALSE' *_SOURCES should be used for TAGS,
Jan Kratochvil <=