X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=make%2Finclude%2Fbase.rules;h=4d9e5ce4f837a7bf7b5faff38c961c2d3280f77a;hb=ce5ed36e140b4ae5aed7edd22e0adc4fa21aea24;hp=fd90d7769f9851a08b27378fc475c8cbd3ae2534;hpb=c8d428d055c84eb606b2d3e946bb8d192a891e00;p=handbrake-jp%2Fhandbrake-jp-git.git diff --git a/make/include/base.rules b/make/include/base.rules index fd90d776..4d9e5ce4 100644 --- a/make/include/base.rules +++ b/make/include/base.rules @@ -1,4 +1,5 @@ -.PHONY: report.main report.gcc report.modules report.var report.true +.PHONY: report.main report.gcc report.modules report.var report.true report.help +.PHONY: shell.run report.modules:: @@ -14,3 +15,27 @@ 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)) + +## diagnostic aid when troubleshooting build issues +shell.run: + $(command)