From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by dpdk.org (Postfix) with ESMTP id C7F4C29D6 for ; Tue, 22 Nov 2016 00:47:44 +0100 (CET) Received: by mail-wm0-f47.google.com with SMTP id u144so1736250wmu.1 for ; Mon, 21 Nov 2016 15:47:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=rVlVmVB+6033YJjFZcp0aDy7m5+/QvIX1HZ/4b75Xns=; b=VDPoB5VXPrO17wVCjC+cVBUs8W4eV1dupffXtCKLOhxu9JaXAarK4mW5Pd2sPZLYUi BU4iUbY1hRUZMVmHLEUxlRAAVtbf4KKq9+1M2tRR0Mj4L1jYkHbeb5RDHSmyeu5rf7Fn weu0vM3Sn4xNW8qXqpcr7FloLkM/CbtQ14wmXEGVfot3df/DbVF7mLyUzO6YvLMiwcCy 9j3CKS9pUPIYW+S0YBNiyPMU/4xivPX5aSWPbrZVqliD/VKtvxt5dFUephJhQhaH7n9b tb42009UqReoJlbGCo7gYxjhsCthV7m6LR+xH4HO1bR6xjl347K9XgnWbnq24XmwEw38 Er4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=rVlVmVB+6033YJjFZcp0aDy7m5+/QvIX1HZ/4b75Xns=; b=G0Chr0bgM08ROeYZ98LQ6z1UBrkllxWHHrfcAaciTu5I9J6Kj0Hw2NPnAGV2FxYkPf Um3Bsv+JCXzxHhlEYZ0vpnIj6q8uRJwFjvQjR176BZB8fdnFeop6+/JRnSFfn9Nq1mx4 rVhhqZ9dx26o+iILMLo7oSGUIDUsGy1Gq2/XrP/34GEY+cSykE8gQrPiQK4MDiaMxREK uTRhajhWjeKgAmsI2s8hXt351a7j+4sFFwIvKqJQ/2u1S9Xqyw9/Z7An+28tW4hSVnzI ao05GiVVdpN/GPh9672FptYCY98wEqeVfKUmzrmzm2aHqszmSCeSS/wDyM4QV8Kahm4j cZZA== X-Gm-Message-State: AKaTC03eW2HTJwieYbioiiGjlEM/vc5pNtipjUvECRXxY5gck95q2ZIEljfLU0GKv+r5dtud X-Received: by 10.28.87.84 with SMTP id l81mr19005017wmb.48.1479772063924; Mon, 21 Nov 2016 15:47:43 -0800 (PST) Received: from XPS13.localdomain (guy78-1-82-235-116-147.fbx.proxad.net. [82.235.116.147]) by smtp.gmail.com with ESMTPSA id c81sm22077890wmf.22.2016.11.21.15.47.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Nov 2016 15:47:43 -0800 (PST) From: Thomas Monjalon To: dev@dpdk.org Date: Tue, 22 Nov 2016 00:47:38 +0100 Message-Id: <1479772058-7112-1-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.7.0 Subject: [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: Mon, 21 Nov 2016 23:47:45 -0000 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 --- mk/rte.sdkexamples.mk | 77 --------------------------------------------------- mk/rte.sdkroot.mk | 4 --- 2 files changed, 81 deletions(-) delete mode 100644 mk/rte.sdkexamples.mk diff --git a/mk/rte.sdkexamples.mk b/mk/rte.sdkexamples.mk deleted file mode 100644 index 111ce91..0000000 --- a/mk/rte.sdkexamples.mk +++ /dev/null @@ -1,77 +0,0 @@ -# BSD LICENSE -# -# Copyright(c) 2014 6WIND S.A. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: -# -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# * Neither the name of 6WIND S.A. nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -# examples application are seen as external applications which are -# not part of SDK. -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 ?= * - -# list all available configurations -EXAMPLES_CONFIGS := $(patsubst $(RTE_SRCDIR)/config/defconfig_%,%,\ - $(wildcard $(RTE_SRCDIR)/config/defconfig_$(T))) -EXAMPLES_TARGETS := $(addsuffix _examples,\ - $(filter-out %~,$(EXAMPLES_CONFIGS))) - -.PHONY: examples -examples: $(EXAMPLES_TARGETS) - -%_examples: - @echo ================== Build examples for $* - $(Q)if [ ! -d "${RTE_SDK}/${*}" ]; then \ - echo "Target ${*} does not exist in ${RTE_SDK}/${*}." ; \ - echo -n "Please install DPDK first (make install) or use another " ; \ - echo "target argument (T=target)." ; \ - false ; \ - else \ - $(MAKE) -C examples O=$(abspath $(O)) RTE_TARGET=$(*); \ - fi - -EXAMPLES_CLEAN_TARGETS := $(addsuffix _examples_clean,\ - $(filter-out %~,$(EXAMPLES_CONFIGS))) - -.PHONY: examples_clean -examples_clean: $(EXAMPLES_CLEAN_TARGETS) - -%_examples_clean: - @echo ================== Clean examples for $* - $(Q)if [ ! -d "${RTE_SDK}/${*}" ]; then \ - echo "Target ${*} does not exist in ${RTE_SDK}/${*}." ; \ - echo -n "Please install DPDK first (make install) or use another " ; \ - echo "target argument (T=target)." ; \ - false ; \ - else \ - $(MAKE) -C examples O=$(abspath $(O)) RTE_TARGET=$(*) clean; \ - fi diff --git a/mk/rte.sdkroot.mk b/mk/rte.sdkroot.mk index 04ad523..81233ed 100644 --- a/mk/rte.sdkroot.mk +++ b/mk/rte.sdkroot.mk @@ -117,10 +117,6 @@ depdirs depgraph: gcov gcovclean: $(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdkgcov.mk $@ -.PHONY: examples examples_clean -examples examples_clean: - $(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdkexamples.mk $@ - # all other build targets %: $(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdkconfig.mk checkconfig -- 2.7.0