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'.




_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to