[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Dinamic paths
From: |
Karl Hegbloom |
Subject: |
Re: Dinamic paths |
Date: |
Thu, 07 Jun 2007 00:56:23 -0600 |
On Tue, 2007-06-05 at 10:26 +0100, Manuel Preliteiro wrote:
> OCAMLC = ocamlc
> OCAMLIBS = $(OCAMLC) -where
> /* This line returns the path i want
> --> /home/manuel/godi/lib/ocaml/std-lib */
>
> and then inside a rule i have:
> $(CC) -I $(OCAML_LIBS) -c testing.c
>
> The desired output would be:
> cc -I /home/manuel/godi/lib/ocaml/std-lib -c testing.c
>
> But i'm geting
> cc -I ocamlc -where -c testing
You can probably do it without resorting to use of the 'shell' function.
Grep the info documentation for 'eval', 'computed names' and for
'secondary expansion'.