[Gllug] GNU make expert question: write variable value to a file

Nix nix at esperi.demon.co.uk
Sat Mar 15 21:10:31 UTC 2003


On Wed, 12 Mar 2003, Richard W. M. Jones moaned:
> On Tue, Mar 11, 2003 at 09:17:33PM +0000, Nix wrote:
>> OK; your shell trick below seems the best method to use (except that
>> you meant $(foo), of course).
>> 
>> > #!/bin/sh
>> > cat <<EOF
>> > $foo
>> > EOF
>> > 
>> > This does work but isn't acceptable because the variable in question
>> > is very large, and so overflows the environment for this and every
>> > other process that the Makefile runs.
>> > 
>> > Ideas???
>> 
>> Use `unexport'; there's no need to pass big variables down at all.
> 
> Problem is that if I unexport the variable the shell trick doesn't work
> because the variable isn't exported to the shell.

Well, use

$(foo)

instead, then :)

-- 
#ifdef USE_ISPTS_FLAG
		} else {	/* else pty, not pts */
#endif

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list