From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-x232.google.com (mail-wg0-x232.google.com [IPv6:2a00:1450:400c:c00::232]) by dpdk.org (Postfix) with ESMTP id BD16630E for ; Wed, 29 May 2013 00:15:35 +0200 (CEST) Received: by mail-wg0-f50.google.com with SMTP id k13so5957633wgh.5 for ; Tue, 28 May 2013 15:15:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:subject:date:message-id:x-mailer:in-reply-to:references :in-reply-to:references:x-gm-message-state; bh=UDb5+BUcC7mBNbflmwpPcJlV4CNJ6k5oYlkM/E/Ifvk=; b=bZYhtOn6GjX5q33uiddh8CZe5Q0s5ICTM1gjegXKQeyBnFv/Xwion30t0ZdCupHzXy ajjMbeNF0N3eDedyyXAL4e8KKcsQzWIn3teyJhwtTyoQf2ej3Ar77HlcNBJpFLre/VIe 3H97oN7UgRUbfC/21gUgZNF9LzieiAi4aP5aQ8SB9aGup7HesUebiZboghiy4Q9iPtpX 5P16XhAJef4tmkWOB2OH6FOBsSsNt4Aed3eVW9HvnJ+w7AwCvMWhya8MjyJw59TJvifM 7haEOQteCHweqqkkP5LCmFRE0bqZG0/BBHguDhDhskCa/n5+qoOgcGvE/8alfjfhqgUJ 5meg== X-Received: by 10.194.134.161 with SMTP id pl1mr14292419wjb.31.1369779341486; Tue, 28 May 2013 15:15:41 -0700 (PDT) Received: from 6wind.com (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id fu14sm27387884wic.0.2013.05.28.15.15.39 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 28 May 2013 15:15:40 -0700 (PDT) Received: by 6wind.com (sSMTP sendmail emulation); Wed, 29 May 2013 00:15:42 +0200 From: Thomas Monjalon To: dev@dpdk.org Date: Wed, 29 May 2013 00:15:34 +0200 Message-Id: X-Mailer: git-send-email 1.7.10.4 In-Reply-To: References: In-Reply-To: References: X-Gm-Message-State: ALoCoQnDSjdCykezi5Adn8u9ltFGs3sDKfa91ni7tgb4IpdI8RHHz+N5t50MuDY7stpikINCKd0Z Subject: [dpdk-dev] [PATCH v2 2/3] mk: rule showconfigs for configs listing 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, 28 May 2013 22:15:36 -0000 Allow to list configs in config/ directory with a simple make rule. The rule showconfigs is reused in config error. In the same time, "echo -n" is replaced by the more portable "printf". Signed-off-by: Thomas Monjalon --- mk/rte.sdkconfig.mk | 12 +++++++----- mk/rte.sdkroot.mk | 4 ++-- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/mk/rte.sdkconfig.mk b/mk/rte.sdkconfig.mk index ed81c47..2c071a2 100644 --- a/mk/rte.sdkconfig.mk +++ b/mk/rte.sdkconfig.mk @@ -36,14 +36,16 @@ INSTALL_CONFIGS := $(filter-out %~,\ $(wildcard $(RTE_SRCDIR)/config/defconfig_*))) INSTALL_TARGETS := $(addsuffix _install,$(INSTALL_CONFIGS)) +.PHONY: showconfigs +showconfigs: + @$(foreach CONFIG, $(INSTALL_CONFIGS), echo $(CONFIG);) + .PHONY: config ifeq ($(RTE_CONFIG_TEMPLATE),) config: - @echo -n "No template specified. Use T=template " ; \ - echo "among the following list:" ; \ - for t in $(INSTALL_CONFIGS); do \ - echo " $$t" ; \ - done + @printf "No template specified. " + @echo "Use T=template among the following list:" + @$(MAKE) -rR showconfigs | sed 's,^, ,' else config: $(RTE_OUTPUT)/include/rte_config.h $(RTE_OUTPUT)/Makefile $(Q)$(MAKE) depdirs diff --git a/mk/rte.sdkroot.mk b/mk/rte.sdkroot.mk index f555e33..6bbbd54 100644 --- a/mk/rte.sdkroot.mk +++ b/mk/rte.sdkroot.mk @@ -87,8 +87,8 @@ export ROOTDIRS-y ROOTDIRS- ROOTDIRS-n .PHONY: default default: all -.PHONY: config -config: +.PHONY: config showconfigs +config showconfigs: $(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdkconfig.mk $@ .PHONY: test fast_test ring_test mempool_test -- 1.7.10.4