mkimage-profiles/image.in/vars.mk
Michael Shigorin cc8982dd7e tweaked variable logging
Preferences might be somewhat interesting too: while the official
ones shouldn't influence the build result at all, there's no whitelist
so all kinds of weirdness can be stuffed into local config in principle.
That should be diagnosable at least.
2011-11-07 00:01:36 +02:00

23 lines
529 B
Makefile

# dump interesting variables' effective values;
# based on http://stackoverflow.com/questions/7117978
# staged "uninteresting" lists
SPAM := SPAM INIT PREFS DISTCFG DISTCFG_MK
INIT := $(.VARIABLES)
-include $(HOME)/.mkimage/profiles.mk
PREFS := $(.VARIABLES)
-include distcfg.mk
DISTCFG := $(.VARIABLES)
# a separator variable
-- := --
.PHONY: dump-vars
dump-vars:
$(foreach v, \
$(filter-out $(SPAM) $(INIT),$(sort $(PREFS))) -- \
$(filter-out $(SPAM) $(PREFS),$(sort $(DISTCFG))), \
$(info $(v) = $($(v))))
@: