From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=52030 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PnTBS-0005cH-QQ for qemu-devel@nongnu.org; Thu, 10 Feb 2011 04:51:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PnTBI-0004RA-Ii for qemu-devel@nongnu.org; Thu, 10 Feb 2011 04:51:21 -0500 Received: from mail-ww0-f53.google.com ([74.125.82.53]:51796) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PnTBI-0004Qx-7y for qemu-devel@nongnu.org; Thu, 10 Feb 2011 04:51:20 -0500 Received: by wwi18 with SMTP id 18so1089612wwi.10 for ; Thu, 10 Feb 2011 01:51:19 -0800 (PST) Sender: Paolo Bonzini Message-ID: <4D53B514.7050605@redhat.com> Date: Thu, 10 Feb 2011 10:51:16 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <4560.09833510524$1294992458@news.gmane.org> In-Reply-To: <4560.09833510524$1294992458@news.gmane.org> Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH] Fix multiple qemu-options.def generation List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Pavel Dovgaluk Cc: qemu-devel@nongnu.org > diff --git a/Makefile.objs b/Makefile.objs > index 4a1eaa1..ee9f190 100755 > --- a/Makefile.objs > +++ b/Makefile.objs > @@ -269,10 +269,10 @@ vl.o: QEMU_CFLAGS+=$(GPROF_CFLAGS) > vl.o: QEMU_CFLAGS+=$(SDL_CFLAGS) > -vl.o: qemu-options.def > +vl.o: ../qemu-options.def > os-posix.o: qemu-options.def > os-win32.o: qemu-options.def > -qemu-options.def: $(SRC_PATH)/qemu-options.hx > +%qemu-options.def: $(SRC_PATH)/qemu-options.hx > $(call quiet-command,sh $(SRC_PATH)/hxtool -h < $< > $@," GEN $(TARGET_DIR)$@") This is wrong, I think the problem is that you are missing a vpath directive. Does this help? diff --git a/rules.mak b/rules.mak index ed59c9e..6f753ae 100644 --- a/rules.mak +++ b/rules.mak @@ -39,7 +39,7 @@ quiet-command = $(if $(V),$1,$(if $(2),@echo $2 && $1, @$1)) cc-option = $(if $(shell $(CC) $1 $2 -S -o /dev/null -xc /dev/null \ >/dev/null 2>&1 && echo OK), $2, $3) -VPATH_SUFFIXES = %.c %.h %.S %.m %.mak %.texi +VPATH_SUFFIXES = %.c %.h %.S %.m %.mak %.texi %.def set-vpath = $(if $1,$(foreach PATTERN,$(VPATH_SUFFIXES),$(eval vpath $(PATTERN) $1))) # find-in-path Paolo