From owner-freebsd-questions@FreeBSD.ORG Thu Sep 6 02:15:55 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D2EFE106564A for ; Thu, 6 Sep 2012 02:15:55 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 8E2BF8FC15 for ; Thu, 6 Sep 2012 02:15:55 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id q862FnMd001811; Wed, 5 Sep 2012 20:15:49 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id q862Fnfa001808; Wed, 5 Sep 2012 20:15:49 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Wed, 5 Sep 2012 20:15:49 -0600 (MDT) From: Warren Block To: Tim Daneliuk In-Reply-To: <50480361.8030601@tundraware.com> Message-ID: References: <5047E804.7050406@tundraware.com> <5047ED29.2040001@shatow.net> <50480361.8030601@tundraware.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Wed, 05 Sep 2012 20:15:49 -0600 (MDT) Cc: freebsd-questions@freebsd.org, Bryan Drewery Subject: Re: Somewhat OT: Using Pipes Inside a GNU Make File X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Sep 2012 02:15:55 -0000 On Wed, 5 Sep 2012, Tim Daneliuk wrote: > On 09/05/2012 07:24 PM, Bryan Drewery wrote: >> On 9/5/2012 7:02 PM, Tim Daneliuk wrote: >>> A bit off topic, but I'm kind of stuck. I am using gmake and want to >>> do something like this: >>> >>> FOO := $(shell a | b | c) >>> >>> But this appears not to work. Only the 'a' command is executed. The >>> remainder >>> of the pipeline is ignored. Is there some clean way to implement this >>> kind of thing? >>> >>> >> >> I use this in a GNUMakefile and it works fine. >> >> BRANCH := $(shell git branch --no-color | grep "^*" | sed -e 's/^\* //') >> >> >> You may need to post a more specific example. >> >> Bryan> _______________________________________________ > > Here's the line that is failing: > > 2LATEX = $(shell which rst2latex.py rst2latex | tr '\012' ' ' | awk '{print $1}') --stylesheet=parskip Bryan's example is using := for assignment.