Fix multiple qemu-options.def generation
PATCH 1/1 Fix multiple qemu-options.def generation
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.
---
Makefile.objs | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Makefile.objs +0 -0
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)$@")
Signature · 1 line
1.7.3.3