Subject: Re: make: Unclosed variable specification for MOZILLA_EXTENSIONS
To: Jeremy C. Reed <reed@reedmedia.net>
From: Todd Vierling <tv@duh.org>
List: tech-pkg
Date: 04/22/2005 16:03:46
On Fri, 22 Apr 2005, Jeremy C. Reed wrote:

> This is related to the "mk/tools/replace.mk" thread going on, I think.
>
> What is the portable way to replace the nbmake :ts modifier?

Shellcode.  To make it deferrable, use something like:

FOO_cmd=	${ECHO} ${BAR} | ${TR} ' ' ',' # where , is char; note NO !=
FOO=		${FOO_cmd:sh}

Evaluation of ${FOO} will run the shell command inline and replace it with
the shell command's output.

-- 
-- Todd Vierling <tv@duh.org> <tv@pobox.com> <todd@vierling.name>