Hello Daniel, * Daniel Richard G. wrote on Fri, Mar 27, 2009 at 05:07:49AM CET: > EXTRA_PROGRAMS = foo bar > > if ENABLE_STUFF > bin_PROGRAMS = $(EXTRA_PROGRAMS) > endif > > I go to regenerate the makefile, and, what's all this then? > > automake: bar_OBJECTS should not be defined > Makefile.am:1: while processing program `bar' > automake: foo_OBJECTS should not be defined > Makefile.am:1: while processing program `foo' > > bar_OBJECTS? foo_OBJECTS? Where?? And I got all confused and thought I > should bring it to the attention of this list.
Looks like automake is as confused as you are. For now, here's a simple workaround, using a helper variable that is not special to automake: progs = foo bar EXTRA_PROGRAMS = $(progs) if ENABLE_STUFF bin_PROGRAMS = $(progs) endif Cheers, Ralf
