From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.tuxdriver.com (charlotte.tuxdriver.com [70.61.120.58]) by dpdk.org (Postfix) with ESMTP id 371CBB0B0 for ; Fri, 25 Apr 2014 16:05:31 +0200 (CEST) Received: from hmsreliant.think-freely.org ([2001:470:8:a08:7aac:c0ff:fec2:933b] helo=localhost) by smtp.tuxdriver.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1Wdgkp-00059r-Ta; Fri, 25 Apr 2014 10:05:32 -0400 Date: Fri, 25 Apr 2014 10:05:26 -0400 From: Neil Horman To: Olivier Matz Message-ID: <20140425140526.GG14074@hmsreliant.think-freely.org> References: <1398427249-15418-1-git-send-email-olivier.matz@6wind.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1398427249-15418-1-git-send-email-olivier.matz@6wind.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Score: -2.9 (--) X-Spam-Status: No Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH 0/5] examples: add a new makefile to build all examples 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, 25 Apr 2014 14:05:31 -0000 On Fri, Apr 25, 2014 at 02:00:44PM +0200, Olivier Matz wrote: > This patch series adds a makefile to build all examples supported > by the configuration. It helps to check that all examples compile > after a dpdk modification. > > After applying the patches, it is possible to build all examples by doing > the following: > > user@droids:~/dpdk.org$ cd examples > user@droids:~/dpdk.org/examples$ make RTE_SDK=${PWD}/.. \ > RTE_TARGET=x86_64-default-linuxapp-gcc What you actually want here is RTE_TARGET=build, as the Makefile looks for the ${RTE_TARGET}/.config file, it doesn't just parse whatever target file you specify. That begs the bigger point, RTE_TARGET will always be =build, so why not just add a top level make rule for the examples subdirectory, then RTE_SDK and RTE_TARGET will just be automatically set. Regards Neil