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
> -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
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
> -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
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
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