help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crazy make rules with here documents, example.


From: Stephan Beal
Subject: Re: Crazy make rules with here documents, example.
Date: Tue, 6 Apr 2010 19:37:52 +0200

On Tue, Apr 6, 2010 at 7:25 PM, Mike Mestnik <address@hidden> wrote:
{ printf "line1\n"; printf "line2\n"; } | cat > blah.tmp 
{ printf "line1\n"; printf "line2\n"; } | gcc... 


If you're using bash (and possibly some other shells), it's easier to:

{ print "..."; printf "..."; } > blah.tmp
{ print "..."; printf "..."; } | gcc ...

i don't know if that syntax works in Bourne-compatibility mode.

--
----- stephan beal
http://wanderinghorse.net/home/stephan/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]