mkimage-profiles/image.in/vars.mk
Michael Shigorin 80090d1f1a minor tweaks (no functional changes)
Mostly multiline compactions, but also use/install2/net
got factored out from distro/server-ovz for future reuse.
2012-03-21 15:55:24 +02:00

23 lines
528 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))))
@: