On May 31, 2000, Tom Tromey <[EMAIL PROTECTED]> wrote:
> >>>>> "Alex" == Alex Hornby <[EMAIL PROTECTED]> writes:
> 
> Alex> Is there already an expand_make_variable() type function?
> 
> Yes.  You can use variable_value_as_list in automake to do this.  But
> really you'll want to have direct support for IDL in automake, so that
> IDL files can be listed directly in _SOURCES and be collated by
> automake.

Does variable_value_as_list support variable substitutions?  I'm using
automake 1.4, and I couldn't get them to work properly.  They seemed to
have some strange side-effects.  For example, the following snippet
errors out when it can't find the "shell32" target.

  IMPORTS   = shell32 comdlg32 ole32 winspool.drv
  bin_PROGRAMS = clock
  clock_LDADD = $(IMPORTS:%=-l%)

It grabs $(IMPORTS) instead of $(IMPORTS:%=-l%) to add to dep_list,
which results in a bad _DEPENDENCIES:

  clock_DEPENDENCIES = shell32 comdlg32 ole32 winspool.drv

Does CVS automake handle this better?  I also had problems putting
substitutions into a _SOURCES variable.

John

-- 
[EMAIL PROTECTED]                            http://www.gnome.org
[EMAIL PROTECTED]                  http://www.worldforge.org
               http://advogato.org/person/jsheets

Reply via email to