From owner-freebsd-questions Tue Sep 10 13: 2:18 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8E8E037B400 for ; Tue, 10 Sep 2002 13:02:14 -0700 (PDT) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id C9FB843E72 for ; Tue, 10 Sep 2002 13:02:12 -0700 (PDT) (envelope-from keramida@ceid.upatras.gr) Received: from hades.hell.gr (patr530-a022.otenet.gr [212.205.215.22]) by mailsrv.otenet.gr (8.12.4/8.12.4) with ESMTP id g8AK25K9004204 for ; Tue, 10 Sep 2002 23:02:07 +0300 (EEST) Received: from hades.hell.gr (hades [127.0.0.1]) by hades.hell.gr (8.12.6/8.12.6) with ESMTP id g8AJv9Sx006119 for ; Tue, 10 Sep 2002 22:57:09 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from charon@localhost) by hades.hell.gr (8.12.6/8.12.6/Submit) id g8AJv9Rt006118; Tue, 10 Sep 2002 22:57:09 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Tue, 10 Sep 2002 22:57:08 +0300 From: Giorgos Keramidas To: Harlan Stenn Cc: questions@FreeBSD.ORG Subject: Re: make variable expansion question Message-ID: <20020910195708.GC2926@hades.hell.gr> References: <27690.1031632570@puss.pfcs.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <27690.1031632570@puss.pfcs.com> X-PGP-Fingerprint: C1EB 0653 DB8B A557 3829 00F9 D60F 941A 3186 03B6 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002-09-10 00:36, Harlan Stenn 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