75fd795210
This was done while debugging GLOBAL_CLEANUP_PACKAGES getting doubled... as it got no hard initial value but rather was always added to, it appeared that at least stage2/Makefile would obtain a once-initialized value from upstream and double it while including distcfg.mk itself. It's way less hassle to just proxy the value once.
15 lines
305 B
Makefile
15 lines
305 B
Makefile
# dump interesting variables' effective values;
|
|
# based on http://stackoverflow.com/questions/7117978
|
|
|
|
SPAM := $(.VARIABLES) DISTCFG_MK
|
|
-include distcfg.mk
|
|
HAM := $(.VARIABLES)
|
|
|
|
.PHONY: dump-vars
|
|
|
|
dump-vars:
|
|
$(foreach v, \
|
|
$(filter-out $(SPAM) SPAM,$(sort $(HAM))), \
|
|
$(info $(v) = $($(v))))
|
|
@:
|