From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-x233.google.com (mail-wg0-x233.google.com [IPv6:2a00:1450:400c:c00::233]) by dpdk.org (Postfix) with ESMTP id 0BB65684A for ; Fri, 17 May 2013 17:27:26 +0200 (CEST) Received: by mail-wg0-f51.google.com with SMTP id b13so3407472wgh.6 for ; Fri, 17 May 2013 08:27:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:organization:to:subject:date:user-agent:cc :references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id:x-gm-message-state; bh=ZxnMYfn0scmCzMpGzJ0EtkyaWEZMsOviAlyOjZUx46E=; b=H/ccJNoM+xPG3MMGL/EUCKHddSZWo0+n8BiKNMu2OgT+rGX06+N1ASVSaf2BnlEoph x5mG4yf0tkOzMJ3kl8x1YS0PPIpbGAdGHYeJ4Im/y7BN8KtsuePYwcudgXMZUt/LiOo2 qWe/L/C5R7idXSmTZhIqTnpX0S1sP9mv5snlA2Tvu5zH4pbzA1WiDYkCtpKWuUod/iuJ msPRVMWGykmJeKqIn41T8I/aoYpEKhshU2xRi1W9CE5QxIXgiXLaNiFDd5dyPZMkYQ8j 2vWLnblnO9dC9dDi6uKfSdLjWAIOW5eCf1Mz3dfSPoTtmgtjk2MRS0xUM0prWFIyDYBr hN0w== X-Received: by 10.180.88.162 with SMTP id bh2mr9202558wib.3.1368804449992; Fri, 17 May 2013 08:27:29 -0700 (PDT) Received: from angus.localnet (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id dj7sm10152858wib.6.2013.05.17.08.27.27 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 May 2013 08:27:28 -0700 (PDT) From: Thomas Monjalon Organization: 6WIND To: Olivier MATZ Date: Fri, 17 May 2013 17:27:29 +0200 User-Agent: KMail/1.13.7 (Linux/3.2.0-4-amd64; KDE/4.8.4; x86_64; ; ) References: <5195F309.1080101@6wind.com> In-Reply-To: <5195F309.1080101@6wind.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201305171727.30089.thomas.monjalon@6wind.com> X-Gm-Message-State: ALoCoQkOgHSdW4XdzZE0qpJew/8VbCbehIDkiWohr45AaFDhGdcMXFoKEV4N/JrF/Rgb8zgrBa7n Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH 3/3] mk: rule help X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 May 2013 15:27:27 -0000 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