From 3ca54dc4fdee70ca197cffc7015fa7317d75e380 Mon Sep 17 00:00:00 2001 From: konablend Date: Wed, 4 Mar 2009 21:28:47 +0000 Subject: BuildSystem: - added new target: make report.help (for cvk_b). - updated doc accordingly. - updated doc QuickStart chapter to be clearer for novices. - added wiki auto-posting targets which are work-in-progress git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2221 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- make/include/base.rules | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'make/include/base.rules') diff --git a/make/include/base.rules b/make/include/base.rules index fd90d7769..65c03732f 100644 --- a/make/include/base.rules +++ b/make/include/base.rules @@ -14,3 +14,23 @@ report.var: ## needed for nested make (which drives each report) report.true: @true + +## linefeed is important +define REPORT.help.item.global + @echo 'report.$(1)' | awk '{ printf(" %-21s $(REPORT.help.$(1))\n", $$0) }' + +endef +define REPORT.help.item.module + @echo '$($(1).name).report' | awk '{ printf(" %-21s $(1)-scoped vars\n", $$0) }' + +endef + +REPORT.help.main = global general vars +REPORT.help.gcc = global gcc vars (inherited by module GCC) +REPORT.help.var = usage: make report.var name=VARNAME + +report.help: + @echo " AVAILABLE MAKEFILE VARS REPORTS" + @echo " ----------------------------------------------------------------" + $(foreach n,main gcc var,$(call REPORT.help.item.global,$n)) + $(foreach n,$(MODULES.NAMES),$(call REPORT.help.item.module,$n)) -- cgit v1.2.3