Commit cc8982dd authored by Michael Shigorin's avatar Michael Shigorin

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.
parent cd3e47c5
...@@ -18,6 +18,9 @@ IMAGE_NAME := $(basename $(IMAGE_FILE))# server-base ...@@ -18,6 +18,9 @@ IMAGE_NAME := $(basename $(IMAGE_FILE))# server-base
IMAGE_TYPE := $(suffix $(IMAGE_FILE))# .iso (fix this too) IMAGE_TYPE := $(suffix $(IMAGE_FILE))# .iso (fix this too)
IMAGE_TYPE := $(IMAGE_TYPE:.%=%)# iso IMAGE_TYPE := $(IMAGE_TYPE:.%=%)# iso
# preferences
-include $(HOME)/.mkimage/profiles.mk
# most of the actual work done elsewhere # most of the actual work done elsewhere
include lib/*.mk include lib/*.mk
include conf.d/*.mk include conf.d/*.mk
......
# dump interesting variables' effective values; # dump interesting variables' effective values;
# based on http://stackoverflow.com/questions/7117978 # based on http://stackoverflow.com/questions/7117978
SPAM := $(.VARIABLES) DISTCFG_MK # staged "uninteresting" lists
SPAM := SPAM INIT PREFS DISTCFG DISTCFG_MK
INIT := $(.VARIABLES)
-include $(HOME)/.mkimage/profiles.mk
PREFS := $(.VARIABLES)
-include distcfg.mk -include distcfg.mk
HAM := $(.VARIABLES) DISTCFG := $(.VARIABLES)
# a separator variable
-- := --
.PHONY: dump-vars .PHONY: dump-vars
dump-vars: dump-vars:
$(foreach v, \ $(foreach v, \
$(filter-out $(SPAM) SPAM,$(sort $(HAM))), \ $(filter-out $(SPAM) $(INIT),$(sort $(PREFS))) -- \
$(filter-out $(SPAM) $(PREFS),$(sort $(DISTCFG))), \
$(info $(v) = $($(v)))) $(info $(v) = $($(v))))
@: @:
...@@ -26,4 +26,4 @@ endif ...@@ -26,4 +26,4 @@ endif
DATE = $(shell date +%Y%m%d) DATE = $(shell date +%Y%m%d)
TIME = `date +%H:%M:%S` TIME = `date +%H:%M:%S`
export BUILDLOG DATE DEBUG GLOBAL_DEBUG GLOBAL_VERBOSE LOG MAKE SHELL export BUILDLOG DATE GLOBAL_DEBUG GLOBAL_VERBOSE LOG MAKE SHELL
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment