automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Harald Dunkel
Subject: Re: make depend problem with hello_SOURCES = ${SRCDIR}/hello.c
Date: Tue, 13 Sep 2005 12:58:45 +0200
User-agent: Debian Thunderbird 1.0.2 (X11/20050402)

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 configure, or
in a config file.

And a single Makefile.am file instead of one file for each
module is not modular. The set of modules to build is not
constant, either.

> to solve this problem cleanly?  Alternatively, you can cludge
> 
> linked_sources = common_interface.c more.c even-more.c
> BUILT_SOURCES = $(linked_sources)
> $(linked_sources):
>         list='$(linked_sources)'; for file in $$list; do \
>           rm -f $$file; $(LN_S) '$(INTERFACE_DIR)'/"$$file" "$$file"; \
>         done
> 

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 generate the *.Po files
from the Makefile?


Regards

Harri




reply via email to

[Prev in Thread] Current Thread [Next in Thread]