bug-automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#32269: Expanding variables


From: Nick Bowler
Subject: bug#32269: Expanding variables
Date: Wed, 25 Jul 2018 16:37:22 -0400

On 7/25/18, Philip Prindeville <address@hidden> wrote:
> Since automake/autoconf are responsible for generating Makefiles, we
> could add something like:
>
> val.%:
>       @$(if $(filter undefined,$(origin $*)),\
>               echo "$* undefined" >&2, \
>               echo '$(subst ','"'"',$($*))' \
>       )
>
> var.%:
>       @$(if $(filter undefined,$(origin $*)),\
>               echo "$* undefined" >&2, \
>               echo "$*='"'$(subst ','"'\"'\"'"',$($*))'"'" \
>       )
>
> toward the bottom.

I'm not exactly sure what the purpose of this is, but it doesn't
look like portable code, so probably not something Automake should
be generating.

But don't let that stop you.  You can add basically anything you'd
like, including the above rules, to your project's Makefile.am and
Automake will copy it through to the output.

Cheers,
  Nick





reply via email to

[Prev in Thread] Current Thread [Next in Thread]