1 .PHONY: report.main report.gcc report.modules report.var report.true report.help
7 @$(MAKE) report.true REPORT=main
10 @$(MAKE) report.true REPORT=gcc
13 @$(MAKE) report.true REPORT=var
15 ## needed for nested make (which drives each report)
19 ## linefeed is important
20 define REPORT.help.item.global
21 @echo 'report.$(1)' | awk '{ printf(" %-21s $(REPORT.help.$(1))\n", $$0) }'
24 define REPORT.help.item.module
25 @echo '$($(1).name).report' | awk '{ printf(" %-21s $(1)-scoped vars\n", $$0) }'
29 REPORT.help.main = global general vars
30 REPORT.help.gcc = global gcc vars (inherited by module GCC)
31 REPORT.help.var = usage: make report.var name=VARNAME
34 @echo " AVAILABLE MAKEFILE VARS REPORTS"
35 @echo " ----------------------------------------------------------------"
36 $(foreach n,main gcc var,$(call REPORT.help.item.global,$n))
37 $(foreach n,$(MODULES.NAMES),$(call REPORT.help.item.module,$n))
39 ## diagnostic aid when troubleshooting build issues