This patch fixes generation of multiple instances of qemu-options.def by
make script (at least for building in Windows).

Previous version had the following problem: you can built qemu, break the
contents of qemu-options.hx and build qemu successfully again.

Broken qemu-options.hx will not affect the build for the first time.

This works in both directions: after build was broken, you can fix
qemu-options.hx, but qemu will not build successfully, until you delete
qemu-options.def files.

 

Signed-off-by: Pavel Dovgaluk <pavel.dovga...@gmail.com>

---

Makefile.objs |    4 ++--

1 files changed, 2 insertions(+), 2 deletions(-)

 

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)$@")

-- 

1.7.3.3

 

Reply via email to