From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ea0-x22a.google.com (mail-ea0-x22a.google.com [IPv6:2a00:1450:4013:c01::22a]) by dpdk.org (Postfix) with ESMTP id 72DEA6A9A for ; Tue, 7 May 2013 17:17:27 +0200 (CEST) Received: by mail-ea0-f170.google.com with SMTP id z7so394528eaf.29 for ; Tue, 07 May 2013 08:17:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:subject:date:message-id:x-mailer:in-reply-to :references:in-reply-to:references:x-gm-message-state; bh=d36nPRTOTar9I6Gw+SjMEI2xCM2bjvkROfOwxhFo0OU=; b=GQFyD/eAVSCuYjhAl9GWfV+9yakbqgP+3U4mEZWTLp1ScELXsYlx+rMoGUrE1/iNGp RO33uilLqbc9pqR5Ohbt2k8A9H020238xu4Pq8HE/DDWQoEM0df4ul8NewUB/sOPDS8g 6dpIXVTgVNqZEe0mNSLPv7LtLiWsRl6Enlc8QE1cLkZ9aZzw+c5Juj6EGpEFe1vWPQeh V1BPdcHgoryvhv6d8KjHPfuWrZhtEZ5k1TXdh0A7BaLlF/21hpmC0aFdYTPTQ25ze5+n cNM7s+M9lhOQfYDk5eOdriCZ2NuXLNcd3yqbp1OXhOtCI1aqIiv1g2fz5bdNp/GH6ub9 hqew== X-Received: by 10.14.3.137 with SMTP id 9mr6517966eeh.0.1367939847644; Tue, 07 May 2013 08:17:27 -0700 (PDT) Received: from 6wind.com (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id x41sm31264773eey.17.2013.05.07.08.17.25 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 07 May 2013 08:17:26 -0700 (PDT) Received: by 6wind.com (sSMTP sendmail emulation); Tue, 07 May 2013 17:17:27 +0200 From: Thomas Monjalon To: dev@dpdk.org Date: Tue, 7 May 2013 17:17:15 +0200 Message-Id: X-Mailer: git-send-email 1.7.10.4 In-Reply-To: References: In-Reply-To: References: X-Gm-Message-State: ALoCoQnOrMc/2wKxEamwf2I4EQlmp6Kd94UPxWxhqYlXLPwKJ8Y+Mti1GK4mQ6Fg2y8qWOmgle7l Subject: [dpdk-dev] [PATCH 3/3] mk: rule help 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, 07 May 2013 15:17:27 -0000 The goal of this rule is to show which rules/options are available from a "make" command. Let's start by printing short doc about SDK building. The macro maketxt allow to interpret syntax "# make foo" while keeping indentation of the source document. Here, it is used to call "make showconfigs" to list available targets. Signed-off-by: Thomas Monjalon --- mk/rte.sdkdoc.mk | 8 ++++++++ mk/rte.sdkroot.mk | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/mk/rte.sdkdoc.mk b/mk/rte.sdkdoc.mk index edae1e7..6850c39 100644 --- a/mk/rte.sdkdoc.mk +++ b/mk/rte.sdkdoc.mk @@ -38,6 +38,14 @@ $(error "Cannot use T= with doc target") endif endif +define maketxt + sed 's,^\([[:space:]]*\)# make \(.*\),make -rRs \2 | sed "s/^/\1/",e' $1 +endef + +.PHONY: help +help: + @$(call maketxt, $(RTE_SDK)/doc/build-sdk-quick.txt) + .PHONY: all all: htmlapi diff --git a/mk/rte.sdkroot.mk b/mk/rte.sdkroot.mk index 6bbbd54..905b678 100644 --- a/mk/rte.sdkroot.mk +++ b/mk/rte.sdkroot.mk @@ -103,8 +103,9 @@ testall testimport: install uninstall: $(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdkinstall.mk $@ -.PHONY: doc +.PHONY: doc help doc: doc-all +help: doc-help doc-%: $(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdkdoc.mk $* -- 1.7.10.4