Hello Tom, * Tom Bachmann wrote on Sat, Jun 24, 2006 at 02:24:09PM CEST: > > But automake complains "bad characters in variable name". I could work > around this by stopping automake from processing the file (make allows > it), but I could not find a way to do this but $(eval include bar.mk), > which is, uhm, a bit ugly.
Automake aims at generating portable makefiles, i.e., ones also usable with non-GNU make. Automake does not understand much of the GNU make- specific syntax, such as $(eval ..) or $(foreach ..). One possibility to separate GNU make specific parts and portable make parts so that Automake only sees the latter is to put those in Makefile.am, put the GNU make specific stuff in GNUmakefile, and let the latter 'include Makefile'. Cheers, Ralf