From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:56279) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S47S8-0005yq-Mz for qemu-devel@nongnu.org; Sun, 04 Mar 2012 04:10:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S47S7-0006JT-0V for qemu-devel@nongnu.org; Sun, 04 Mar 2012 04:10:04 -0500 Received: from mx1.redhat.com ([209.132.183.28]:46320) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S47S6-0006HY-PF for qemu-devel@nongnu.org; Sun, 04 Mar 2012 04:10:02 -0500 Date: Sun, 4 Mar 2012 11:10:08 +0200 From: "Michael S. Tsirkin" Message-ID: <20120304091007.GA2252@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH] make: remove generated objects from target dirs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, Anthony Liguori I ended up with qmp-commands.h in target directories, which makes build fail as it is found before the main header. make clean fixes it, but it might get triggered again when we make some header target-independent next. It's easy to just make sure all such leftovers are removed, so let's do this. Signed-off-by: Michael S. Tsirkin diff --git a/Makefile b/Makefile index e66e885..958a414 100644 --- a/Makefile +++ b/Makefile @@ -89,6 +89,7 @@ qemu-options.def: $(SRC_PATH)/qemu-options.hx SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS)) subdir-%: $(GENERATED_HEADERS) + $(call quiet-command,rm -f $(foreach header, $(GENERATED_HEADERS), "$*/$(header)"),) $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $* V="$(V)" TARGET_DIR="$*/" all,) ifneq ($(wildcard config-host.mak),)