From 4403715ec65a8a85302d29495a938fe70c799a68 Mon Sep 17 00:00:00 2001 From: Thomas Monjalon Date: Tue, 7 May 2013 15:46:58 +0200 Subject: [PATCH] mk: rule help 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. Signed-off-by: Thomas Monjalon Reviewed-by: Olivier Matz --- mk/rte.sdkdoc.mk | 5 +++++ mk/rte.sdkroot.mk | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/mk/rte.sdkdoc.mk b/mk/rte.sdkdoc.mk index 175b2643fa..30712f4e90 100644 --- a/mk/rte.sdkdoc.mk +++ b/mk/rte.sdkdoc.mk @@ -36,6 +36,11 @@ $(error "Cannot use T= with doc target") endif endif +.PHONY: help +help: + @cat $(RTE_SDK)/doc/build-sdk-quick.txt + @$(MAKE) -rR showconfigs | sed 's,^,\t\t\t\t,' + .PHONY: all all: htmlapi diff --git a/mk/rte.sdkroot.mk b/mk/rte.sdkroot.mk index fa094968ce..28e404b67e 100644 --- a/mk/rte.sdkroot.mk +++ b/mk/rte.sdkroot.mk @@ -101,8 +101,9 @@ testall: 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 $* -- 2.20.1