From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH 3/3] mk: rule help Date: Fri, 17 May 2013 17:27:29 +0200 Message-ID: <201305171727.30089.thomas.monjalon@6wind.com> References: <5195F309.1080101@6wind.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: dev-VfR2kkLFssw@public.gmane.org To: Olivier MATZ Return-path: In-Reply-To: <5195F309.1080101-pdR9zngts4EAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 17/05/2013 11:06, Olivier MATZ : > On 05/07/2013 05:17 PM, Thomas Monjalon wrote: > > The macro maketxt allow to interpret syntax "# make foo" while keeping > > indentation of the source document. > > Here, it is used to call "make showconfigs" to list available targets. > [..] > > +define maketxt > > + sed 's,^\([[:space:]]*\)# make \(.*\),make -rRs \2 | sed "s/^/\1/",e' $1 > > +endef > > I think the "maketxt" macro is overkill... why not just a "cat" ? Because the syntax "# make" is interpreted. With build-sdk-quick.txt, it lists all available configurations. Maybe I should add a comment before the macro to explain it. -- Thomas