[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Variable confusion
From: |
Greg Chicares |
Subject: |
Re: Variable confusion |
Date: |
Tue, 15 Jun 2010 12:51:05 +0000 |
User-agent: |
Thunderbird 2.0.0.24 (Windows/20100228) |
On 2010-06-15 12:23Z, Gary wrote:
> | INCL=`find ${LIB_ROOT} -type d \! \( -name '.*' -prune \) | sed -e 's/^/-I
> /'`
This is a makefile, not a shell script--so $(INCL) is a variable
containing the literal string given, much like a C program that says:
char const* foo = "`find ${LIB_ROOT} -type d \! \( -name '.*' -prune \) | sed
-e 's/^/-I /'`";
If you want to execute that command once and store its result
in a variable, write:
INCL := $(shell find ${LIB_ROOT} -type d \! \( -name '.*' -prune \) | sed -e
's/^/-I /')