Re: Doesn't work: blah_PROGRAMS = $(EXTRA_PROGRAMS)

2009-04-13 Thread Ralf Wildenhues
Helol 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_OBJ

RE: Doesn't work: blah_PROGRAMS = $(EXTRA_PROGRAMS)

2009-03-27 Thread Daniel Richard G.
> -Original Message- > > 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: Oh, a workaround's not a problem; the bug is very narrow. In my case, I just assigned the same literal value to noin

Re: Doesn't work: blah_PROGRAMS = $(EXTRA_PROGRAMS)

2009-03-26 Thread Ralf Wildenhues
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 shoul

RE: Doesn't work: blah_PROGRAMS = $(EXTRA_PROGRAMS)

2009-03-26 Thread Daniel Richard G.
> -Original Message- > > I don't think you need to use EXTRA_PROGRAMS if you > use the idiom > > bin_PROGRAMS = > if ENABLE_STUFF > bin_PROGRAMS += foo bar > endif That works too, but with EXTRA_PROGRAMS, you still get the targets---that is, you can still do "make

Re: Doesn't work: blah_PROGRAMS = $(EXTRA_PROGRAMS)

2009-03-26 Thread Daniel Herring
On Fri, 27 Mar 2009, Daniel Richard G. wrote: I have a Makefile.am with programs that are conditionally compiled, e.g. EXTRA_PROGRAMS = foo bar if ENABLE_STUFF bin_PROGRAMS = foo bar endif I don't think you need to use EXTRA_PROGRAMS if you use the idiom

Doesn't work: blah_PROGRAMS = $(EXTRA_PROGRAMS)

2009-03-26 Thread Daniel Richard G.
This is the bug I was going to submit originally, before the whole shift-on-HP-UX issue got me distracted :-) I have a Makefile.am with programs that are conditionally compiled, e.g. EXTRA_PROGRAMS = foo bar if ENABLE_STUFF bin_PROGRAMS = foo bar endif Which wor