From 72bc5d0539714d9c1899f28e1fd21893492f9849 Mon Sep 17 00:00:00 2001 From: Michael Shigorin Date: Mon, 3 Jun 2013 15:43:35 +0400 Subject: [PATCH] pkg/lists: tweak Makefile to expand variables The issue at hand is the hack to be employed in the init feature: @$(call add,THE_LISTS,$$(INIT_TYPE)) where INIT_TYPE is set separately; $(value $V) would leave that kind of substitution unmolested while we would actually need it done. --- pkg.in/lists/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg.in/lists/Makefile b/pkg.in/lists/Makefile index fa50d2e8..dbfdc4f5 100644 --- a/pkg.in/lists/Makefile +++ b/pkg.in/lists/Makefile @@ -26,8 +26,7 @@ copy-lists: @$(foreach V, \ $(filter %_LISTS,$(sort $(.VARIABLES))), \ $(if $(filter environment% file,$(origin $V)),\ - $(shell cp --parents -at $(TARGET) \ - -- $(value $V)))) + $(shell cp --parents -at $(TARGET) -- $($V)))) copy-groups: @if [ -n "$(THE_GROUPS)$(MAIN_GROUPS)" ]; then \ @@ -43,6 +42,6 @@ debug: @echo -e $(foreach V, \ $(filter %_LISTS,$(sort $(.VARIABLES))), \ $(if $(filter environment% file,$(origin $V)),\ - $(shell echo '\\n"**"' $V: $(value $V)))) '\n' + $(shell echo '\\n"**"' $V: $($V)))) '\n' endif