[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: make depend problem with hello_SOURCES = ${SRCDIR}/hello.c
From: |
Alexandre Duret-Lutz |
Subject: |
Re: make depend problem with hello_SOURCES = ${SRCDIR}/hello.c |
Date: |
Tue, 13 Sep 2005 23:25:22 +0200 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) |
>>> "HD" == Harald Dunkel <address@hidden> 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
- make depend problem with hello_SOURCES = ${SRCDIR}/hello.c, Harald Dunkel, 2005/09/12
- Re: make depend problem with hello_SOURCES = ${SRCDIR}/hello.c, Bob Proulx, 2005/09/12
- Re: make depend problem with hello_SOURCES = ${SRCDIR}/hello.c, Harald Dunkel, 2005/09/13
- Re: make depend problem with hello_SOURCES = ${SRCDIR}/hello.c, Ralf Wildenhues, 2005/09/13
- Re: make depend problem with hello_SOURCES = ${SRCDIR}/hello.c, Harald Dunkel, 2005/09/13
- Re: make depend problem with hello_SOURCES = ${SRCDIR}/hello.c, Stepan Kasal, 2005/09/13
- Re: make depend problem with hello_SOURCES = ${SRCDIR}/hello.c, Ralf Wildenhues, 2005/09/13
- Re: make depend problem with hello_SOURCES = ${SRCDIR}/hello.c, Stepan Kasal, 2005/09/13
- Re: make depend problem with hello_SOURCES = ${SRCDIR}/hello.c, Ralf Wildenhues, 2005/09/13
- Re: make depend problem with hello_SOURCES = ${SRCDIR}/hello.c, Stepan Kasal, 2005/09/13
Re: make depend problem with hello_SOURCES = ${SRCDIR}/hello.c,
Alexandre Duret-Lutz <=