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