Patchwork Makefile: make qemu-img dependant on config-host.h

login
register
mail settings
Submitter Uri Lublin
Date Oct. 29, 2009, 6:40 p.m.
Message ID <1256841601-4964-1-git-send-email-uril@redhat.com>
Download mbox | patch
Permalink /patch/37213/
State New
Headers show

Comments

Uri Lublin - Oct. 29, 2009, 6:40 p.m.
Since config-host.h is generated by the Makefile (1215c6e76),
building (only) qemu-img fails:

[user@f12-uri qemu]$ make distclean (or git clone qemu)
[user@f12-uri qemu]$ ./configure ...
[user@f12-uri qemu]$ make qemu-img
GEN  config-all-devices.mak
GEN   qemu-img-cmds.h
CC    qemu-img.o
In file included from qemu-img.c:24:
qemu-common.h:32:25: error: config-host.h: No such file or directory

Signed-off-by: Uri Lublin <uril@redhat.com>
---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/Makefile b/Makefile
index 4d9908c..6f1bf87 100644
--- a/Makefile
+++ b/Makefile
@@ -200,7 +200,7 @@  libqemu_common.a: $(obj-y)

 ######################################################################

-qemu-img.o: qemu-img-cmds.h
+qemu-img.o: config-host.h qemu-img-cmds.h

 qemu-img$(EXESUF): qemu-img.o qemu-tool.o $(block-obj-y)