This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: configure substitutions in generated Makefile
- From: Alexandre Duret-Lutz <duret_g at lrde dot epita dot fr>
- To: "Kremp, Johannes" <Johannes dot Kremp at gedas dot de>
- Cc: "Automake-Mailing-list (E-Mail)" <automake at gnu dot org>
- Date: Sat, 08 Jun 2002 15:39:25 +0200
- Subject: Re: configure substitutions in generated Makefile
- References: <F3CD65A13709D311932E00508B095644046ED1F2@blnsem05.de.gedas.vwg>
>>> "jk" == Kremp, Johannes <Johannes.Kremp@gedas.de> writes:
[...]
jk> test_SOURCES = test.c
jk> test_LDADD = $(LIBTEST)
[...]
jk> but $(LIBTEST) doesn't appear in the generated Makefile in
jk> test_DEPENDENCIES:
jk> Makefile:
jk> ...
jk> am_test_OBJECTS = test.$(OBJEXT)
jk> test_OBJECTS = $(am_test_OBJECTS)
jk> test_DEPENDENCIES =
jk> test_LDFLAGS =
jk> ...
Automake is not able to guess that $(LIBTEST) will be a valid
dependency when it is run. After all, $(LIBTEST) could has well
contain something like `-lfoo' which is valid for test_LDADD,
but not for test_SOURCES.
So you have to set test_DEPENDENCIES yourself, from your
Makefile.am:
test_SOURCES = test.c
test_LDADD = $(LIBTEST)
test_DEPENDENCIES = $(LIBTEST)
[...]
--
Alexandre Duret-Lutz