From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 4923E2BB0 for ; Tue, 22 Nov 2016 12:49:41 +0100 (CET) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP; 22 Nov 2016 03:49:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,680,1473145200"; d="scan'208";a="33415623" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.57]) ([10.237.220.57]) by orsmga004.jf.intel.com with ESMTP; 22 Nov 2016 03:49:40 -0800 To: Thomas Monjalon References: <1479772058-7112-1-git-send-email-thomas.monjalon@6wind.com> <5520615.NhohP7H5Lc@xps13> Cc: dev@dpdk.org From: Ferruh Yigit Message-ID: <5759d5d2-9ece-abbe-587f-b19443046b87@intel.com> Date: Tue, 22 Nov 2016 11:49:39 +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: <5520615.NhohP7H5Lc@xps13> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit 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 11:49:42 -0000 On 11/22/2016 9:38 AM, Thomas Monjalon wrote: > 2016-11-22 00:34, Ferruh Yigit: >> 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; >> " > > What is the benefit of this makefile? Just remove -C ? To keep existing targets, in case somebody use them. > It is not compatible with the old behaviour, so I'm afraid it would be > confusing for no real benefit. Right, not fully compatible, but still can do: make examples / make examples_clean make examples T=x86_64-native-linuxapp-gcc Overall, if you believe keeping them is confusing, I am OK with it, just may need to update doc/build-sdk-quick.txt to fix "make help" output. Thanks, ferruh