Re: make depend problem with hello_SOURCES = ${SRCDIR}/hello.c

2005-09-13 Thread Alexandre Duret-Lutz
>>> "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

Re: make depend problem with hello_SOURCES = ${SRCDIR}/hello.c

2005-09-13 Thread Stepan Kasal
Hello, On Tue, Sep 13, 2005 at 04:03:36PM +0200, Ralf Wildenhues wrote: > Anyway, the way the rule is now, if $LN_S is `cp', source files in > $(INTERFACE_DIR) newer than in `.' will not get copied, which is bad. well, I supposed that the development happens on system with symlinks. The fallbacks

Re: make depend problem with hello_SOURCES = ${SRCDIR}/hello.c

2005-09-13 Thread Ralf Wildenhues
* Stepan Kasal wrote on Tue, Sep 13, 2005 at 03:26:57PM CEST: > > > You don't need to copy headers. [...] > > So you can leave out the BUILT_SOURCES line completely. > > thanks for correcting me. > > > > $(linked_sources): > > > $(LN_S) '$(INTERFACE_DIR)/$@' '$@' > > > > But you need to "rm

Re: make depend problem with hello_SOURCES = ${SRCDIR}/hello.c

2005-09-13 Thread Stepan Kasal
Hello Harald, Ralf, > You don't need to copy headers. [...] > So you can leave out the BUILT_SOURCES line completely. thanks for correcting me. > > $(linked_sources): > > $(LN_S) '$(INTERFACE_DIR)/$@' '$@' > > But you need to "rm -f '$@'" before invoking $(LN_S). Why? If the file exists,

Re: make depend problem with hello_SOURCES = ${SRCDIR}/hello.c

2005-09-13 Thread Ralf Wildenhues
Hi Stepan, Harald, * Stepan Kasal wrote on Tue, Sep 13, 2005 at 02:21:43PM CEST: > On Tue, Sep 13, 2005 at 12:58:45PM +0200, Harald Dunkel wrote: > > > > linked_sources = common_interface.c more.c even-more.c > > > BUILT_SOURCES = $(linked_sources) > > > $(linked_sources): > > > list='$(l

Re: make depend problem with hello_SOURCES = ${SRCDIR}/hello.c

2005-09-13 Thread Stepan Kasal
Hello Harald, On Tue, Sep 13, 2005 at 12:58:45PM +0200, Harald Dunkel wrote: > Of course I appreciate your workaround, but please remember > that this thread is about generating a meaningfull error > message for a construct that autoconf/automake cannot > handle. But maybe there is a way to genera

Re: make depend problem with hello_SOURCES = ${SRCDIR}/hello.c

2005-09-13 Thread Harald Dunkel
Hi Ralf, Ralf Wildenhues wrote: > > How about using either > - a convenience archive, or > - one single large Makefile.am with subdir-objects > (see "info Automake Alternative") > A convenience library doesn't work, because I have pretty many different CPP defines, probably set either in conf

Re: make depend problem with hello_SOURCES = ${SRCDIR}/hello.c

2005-09-13 Thread Ralf Wildenhues
Hi Harald, * Harald Dunkel wrote on Tue, Sep 13, 2005 at 08:24:14AM CEST: > > I have some common source files that I have to compile and link > several times in different contexts. Actually the Makefile.am > files look more like this: > > hello_SOURCES = \ > $(INTERFACE_DIR)/c

Re: make depend problem with hello_SOURCES = ${SRCDIR}/hello.c

2005-09-12 Thread Harald Dunkel
Bob Proulx wrote: > Harald Dunkel wrote: > >>Question about make depend: >> >>If I set >> >> SRCDIR = ../src >> noinst_PROGRAMS = hello >> hello_SOURCES = ${SRCDIR}/hello.c > > > Shouldn't you be using normal VPATH? That is, you are setting > hello_SOURCES = ../src/hello.c. But

Re: make depend problem with hello_SOURCES = ${SRCDIR}/hello.c

2005-09-12 Thread Bob Proulx
Harald Dunkel wrote: > Question about make depend: > > If I set > > SRCDIR = ../src > noinst_PROGRAMS = hello > hello_SOURCES = ${SRCDIR}/hello.c Shouldn't you be using normal VPATH? That is, you are setting hello_SOURCES = ../src/hello.c. But I don't think you want to do tha

make depend problem with hello_SOURCES = ${SRCDIR}/hello.c

2005-09-12 Thread Harald Dunkel
Hi folks, Question about make depend: If I set SRCDIR = ../src noinst_PROGRAMS = hello hello_SOURCES = ${SRCDIR}/hello.c in my Makefile.am, then make complains Makefile:242: ../src/.deps/hello.Po: No such file or directory make[1]: *** No rule to make target `../src/.de