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 <thomas.monjalon@6wind.com>
Reviewed-by: Olivier Matz <olivier.matz@6wind.com>
This commit is contained in:
Thomas Monjalon 2013-05-07 15:46:58 +02:00 committed by David Marchand
parent a8f1e3d4ad
commit 4403715ec6
2 changed files with 7 additions and 1 deletions

View File

@ -36,6 +36,11 @@ $(error "Cannot use T= with doc target")
endif endif
endif endif
.PHONY: help
help:
@cat $(RTE_SDK)/doc/build-sdk-quick.txt
@$(MAKE) -rR showconfigs | sed 's,^,\t\t\t\t,'
.PHONY: all .PHONY: all
all: htmlapi all: htmlapi

View File

@ -101,8 +101,9 @@ testall:
install uninstall: install uninstall:
$(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdkinstall.mk $@ $(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdkinstall.mk $@
.PHONY: doc .PHONY: doc help
doc: doc-all doc: doc-all
help: doc-help
doc-%: doc-%:
$(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdkdoc.mk $* $(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdkdoc.mk $*