[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Define a complete rule via autoconf (quoting issue, AC_SUBST)
From: |
Ralf Wildenhues |
Subject: |
Re: Define a complete rule via autoconf (quoting issue, AC_SUBST) |
Date: |
Sun, 2 Nov 2008 17:37:32 +0100 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
Hello Daniel,
re. the part that has not been addressed yet:
* Daniel Leidert wrote on Sat, Nov 01, 2008 at 11:21:11PM CET:
>
> schemas_DATA = `echo "$(schemas_in_files)" | sed
> 's/.schemas.in$$//;$(transform);s/$$/.schemas/'`
>
> Running the install target fails, because the installation rules do not
> expand this expression. Instead they try to install "`echo". So I need:
>
> schemas_DATA = $(shell echo "$(schemas_in_files)" | sed
> 's/.schemas.in$$//;$(transform);s/$$/.schemas/')
>
> and this works. Is there maybe a solution, which doesn't require GNU
> make here?
In case $(schemas_in_files) is known at configure time:
configure.ac:
mydatafiles=`echo "$schemas_in_files" |
sed 's/.schemas.in$//;$program_transform_name;s/$/.schemas/'`
AC_SUBST([mydatafiles])
Makefile.am:
schemas_DATA = @mydatafiles@
Otherwise, I don't see a way to do this portably ATM.
Cheers,
Ralf