From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:60185) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4IHK-00080j-22 for qemu-devel@nongnu.org; Thu, 15 Sep 2011 16:11:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R4IHJ-0001wS-6Y for qemu-devel@nongnu.org; Thu, 15 Sep 2011 16:11:22 -0400 Received: from mail-fx0-f45.google.com ([209.85.161.45]:45987) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4IHI-0001wI-Uo for qemu-devel@nongnu.org; Thu, 15 Sep 2011 16:11:21 -0400 Received: by fxh13 with SMTP id 13so1077057fxh.4 for ; Thu, 15 Sep 2011 13:11:20 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <4E725BE4.9030206@redhat.com> Date: Thu, 15 Sep 2011 22:11:16 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <20110915171658.23325.116.stgit@ginnungagap.bsc.es> In-Reply-To: <20110915171658.23325.116.stgit@ginnungagap.bsc.es> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH 1/2] build: Always have 'BUILD_DIR' variable pointing to the root of the build tree List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?TGx1w61zIFZpbGFub3Zh?= Cc: qemu-devel@nongnu.org, Richard Henderson On 09/15/2011 07:16 PM, LluĂ­s Vilanova wrote: > subdir-%: $(GENERATED_HEADERS) > - $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $* V="$(V)" TARGET_DIR="$*/" all,) > + $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $* V="$(V)" BUILD_DIR=$(BUILD_DIR) TARGET_DIR="$*/" all,) Since you have to add the s-o-b line anyway, please add BUILD_DIR to SUBDIR_MAKEFLAGS instead. Paolo