[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Doesn't work: blah_PROGRAMS = $(EXTRA_PROGRAMS)
From: |
Daniel Richard G. |
Subject: |
RE: Doesn't work: blah_PROGRAMS = $(EXTRA_PROGRAMS) |
Date: |
Fri, 27 Mar 2009 01:21:32 -0400 |
> -----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 foo bar" if you wanted. The use case here is optionally
saving time needed to compile a bunch of sample programs (specified as
noinst_PROGRAMS), not disabling targets that would otherwise fail horribly.
--Daniel