From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:46951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNpks-0000hD-R8 for qemu-devel@nongnu.org; Thu, 04 Apr 2013 15:23:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UNpkr-0001gP-5h for qemu-devel@nongnu.org; Thu, 04 Apr 2013 15:23:26 -0400 Received: from mail-wg0-x22a.google.com ([2a00:1450:400c:c00::22a]:57799) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNpkq-0001gE-VD for qemu-devel@nongnu.org; Thu, 04 Apr 2013 15:23:25 -0400 Received: by mail-wg0-f42.google.com with SMTP id k13so1077486wgh.1 for ; Thu, 04 Apr 2013 12:23:24 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Thu, 4 Apr 2013 21:22:41 +0200 Message-Id: <1365103395-11547-2-git-send-email-pbonzini@redhat.com> In-Reply-To: <1365103395-11547-1-git-send-email-pbonzini@redhat.com> References: <1365103395-11547-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 01/35] build: enable using $(CONFIG_FOO) on the rhs of config files List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Signed-off-by: Paolo Bonzini --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 80344d9..0b6e6a1 100644 --- a/Makefile +++ b/Makefile @@ -76,7 +76,10 @@ config-all-devices.mak: $(call quiet-command,echo '# no devices' > $@," GEN $@") else config-all-devices.mak: $(SUBDIR_DEVICES_MAK) - $(call quiet-command,cat $(SUBDIR_DEVICES_MAK) | grep =y | sort -u > $@," GEN $@") + $(call quiet-command, sed -n \ + 's|^\([^=]*\)=\(.*\)$$|\1:=$$(findstring y,$$(\1)\2)|p' \ + $(SUBDIR_DEVICES_MAK) | sort -u > $@, \ + " GEN $@") endif -include $(SUBDIR_DEVICES_MAK_DEP) -- 1.8.1.4