>>> "HD" == Harald Dunkel <[EMAIL PROTECTED]> writes:
HD> Hi folks,
HD> Question about make depend:
HD> If I set
HD> SRCDIR = ../src
HD> noinst_PROGRAMS = hello
HD> hello_SOURCES = ${SRCDIR}/hello.c
HD> in my Makefile.am, then make complains
HD> Makefile:242: ../src/.deps/hello.Po: No such file or directory
HD> make[1]: *** No rule to make target `../src/.deps/hello.Po'. Stop.
HD> No indication about what went wrong. Even worse, config.status
HD> has created a weird directory '$(SRCDIR)'.
This is a known bug : file names partly built from variables
values are not supported (but variables containing entire file
names are OK). Just write hello_SOURCES = ../src/hello.c and
you should be fine. (Unless you are additionally building
something from src/Makefile.am; in which case you'll hit
PR/373.)
HD> Would it be possible to generate a better error message here?
Actually it would be better to support file names containing variables.
Most of the machinery required for this is here already (the
inner_expand option of Variable::traverse_recursively). The only tricky
part is that of such part-of-file-name-variables are allowed, we also
have to deal with the case where they are conditionally defined.
--
Alexandre Duret-Lutz