From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] mk: remove make target for examples Date: Tue, 22 Nov 2016 10:38:39 +0100 Message-ID: <5520615.NhohP7H5Lc@xps13> References: <1479772058-7112-1-git-send-email-thomas.monjalon@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Ferruh Yigit Return-path: Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by dpdk.org (Postfix) with ESMTP id D80D547D2 for ; Tue, 22 Nov 2016 10:38:41 +0100 (CET) Received: by mail-wm0-f51.google.com with SMTP id t79so14944116wmt.0 for ; Tue, 22 Nov 2016 01:38:41 -0800 (PST) In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 ? It is not compatible with the old behaviour, so I'm afraid it would be confusing for no real benefit.