You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
528 B

3 years ago
# 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))))
@: