vars.mk 528 Bytes
Newer Older
1 2 3
# dump interesting variables' effective values;
# based on http://stackoverflow.com/questions/7117978

4 5 6 7 8
# staged "uninteresting" lists
SPAM := SPAM INIT PREFS DISTCFG DISTCFG_MK
INIT := $(.VARIABLES)
-include $(HOME)/.mkimage/profiles.mk
PREFS := $(.VARIABLES)
9
-include distcfg.mk
10 11 12
DISTCFG := $(.VARIABLES)

# a separator variable
13
-- = --
14 15 16 17 18

.PHONY: dump-vars

dump-vars:
	$(foreach v, \
19 20
	  $(filter-out $(SPAM) $(INIT),$(sort $(PREFS))) -- \
	  $(filter-out $(SPAM) $(PREFS),$(sort $(DISTCFG))), \
21 22
	    $(info $(v) = $($(v))))
	@: