Date: Tue, 10 Sep 2002 22:57:08 +0300 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: Harlan Stenn <Harlan.Stenn@pfcs.com> Cc: questions@FreeBSD.ORG Subject: Re: make variable expansion question Message-ID: <20020910195708.GC2926@hades.hell.gr> In-Reply-To: <27690.1031632570@puss.pfcs.com>
index | next in thread | previous in thread | raw e-mail
On 2002-09-10 00:36, Harlan Stenn <Harlan.Stenn@pfcs.com> wrote:
> automake supports:
>
> bin_PROGRAMS = a b
> a_SOURCES = a.c
> b_SOURCES = b.c
>
> and I thought I'd spend some time trying to get similar functionality into
> the .mk rules.
>
> My first step is to generate the variable names a_SOURCES and b_SOURCES from
> bin_PROGRAMS. Easy.
>
> The next step is to get the value of a_SOURCES, given that "a_SOURCES" is
> the value of a variable.
>
> I've tried a bunch of things to try and make this happen, none of which are
> working. (Like $${$${x}}, `eval echo stuff`, etc.)
>
> Can somebody please point me in the right direction?
I hope an example is enough to help you get started:
charon@hades[22:55]/tmp$ cat Makefile
LALA= koko
FOO= LALA
all:
@echo ${${FOO}}
charon@hades[22:55]/tmp$ make
koko
- Giorgos
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020910195708.GC2926>
