From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 63B3B2A5D for ; Tue, 22 Nov 2016 01:34:16 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga104.fm.intel.com with ESMTP; 21 Nov 2016 16:34:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,677,1473145200"; d="scan'208";a="1062563169" Received: from wjmcnico-mobl7.ger.corp.intel.com (HELO [10.252.0.38]) ([10.252.0.38]) by orsmga001.jf.intel.com with ESMTP; 21 Nov 2016 16:34:14 -0800 To: Thomas Monjalon , dev@dpdk.org References: <1479772058-7112-1-git-send-email-thomas.monjalon@6wind.com> From: Ferruh Yigit Message-ID: Date: Tue, 22 Nov 2016 00:34:13 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <1479772058-7112-1-git-send-email-thomas.monjalon@6wind.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] mk: remove make target for 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: Tue, 22 Nov 2016 00:34:16 -0000 On 11/21/2016 11:47 PM, Thomas Monjalon wrote: > The command > make examples > works only if target directories have the exact name of configs. > > It is more flexible to use > make -C examples RTE_SDK=$(pwd) RTE_TARGET=build > > Signed-off-by: Thomas Monjalon Instead of removing examples & examples_clean targets, what do you think keeping them as wrapper to suggested usage, for backward compatibility. Something like: " BUILDING_RTE_SDK := export BUILDING_RTE_SDK # Build directory is given with O= O ?= $(RTE_SDK)/examples # Target for which examples should be built. T ?= build .PHONY: examples examples: @echo ================== Build examples for $(T) $(MAKE) -C examples O=$(abspath $(O)) RTE_TARGET=$(T); .PHONY: examples_clean examples_clean: @echo ================== Clean examples for $(T) $(MAKE) -C examples O=$(abspath $(O)) RTE_TARGET=$(T) clean; "