mk: rule help
authorThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 7 May 2013 13:46:58 +0000 (15:46 +0200)
committerDavid Marchand <david.marchand@6wind.com>
Wed, 26 Feb 2014 10:01:13 +0000 (11:01 +0100)
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 <thomas.monjalon@6wind.com>
Reviewed-by: Olivier Matz <olivier.matz@6wind.com>
mk/rte.sdkdoc.mk
mk/rte.sdkroot.mk

index 175b264..30712f4 100644 (file)
@@ -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
 
index fa09496..28e404b 100644 (file)
@@ -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 $*