]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
maint: avoid incremental 'make syntax-check' failure
authorEric Blake <eblake@redhat.com>
Tue, 12 Jul 2011 16:52:56 +0000 (10:52 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 12 Jul 2011 17:16:44 +0000 (11:16 -0600)
Incrementally running 'make syntax-check' on a tree previously
built after commit 62dee6f but before 44036460 fails sc_po_check
(because the generated qemu_dispatch.h gained translatable strings).
This is a followup to commit addaa537 for that scenario.

* cfg.mk (sc_po_check): Add another prereq.
($(srcdir)/daemon/qemu_dispatch.h): Add rule.

cfg.mk

diff --git a/cfg.mk b/cfg.mk
index b00cda36509e9104a891c347726aeb6a905f66a4..5178a31f3a3f6b0a741ea2fa5c011096bdc588f6 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -606,11 +606,15 @@ _autogen:
 syntax-check: $(top_srcdir)/HACKING
 
 # sc_po_check can fail if generated files are not built first
-sc_po_check: $(srcdir)/daemon/remote_dispatch.h \
+sc_po_check: \
+               $(srcdir)/daemon/remote_dispatch.h \
+               $(srcdir)/daemon/qemu_dispatch.h \
                $(srcdir)/src/remote/remote_client_bodies.h
-$(srcdir)/daemon/remote_dispatch.h:
+$(srcdir)/daemon/remote_dispatch.h: $(srcdir)/src/remote/remote_protocol.x
        $(MAKE) -C daemon remote_dispatch.h
-$(srcdir)/src/remote/remote_client_bodies.h:
+$(srcdir)/daemon/qemu_dispatch.h: $(srcdir)/src/remote/qemu_protocol.x
+       $(MAKE) -C daemon qemu_dispatch.h
+$(srcdir)/src/remote/remote_client_bodies.h: $(srcdir)/src/remote/remote_protocol.x
        $(MAKE) -C src remote/remote_client_bodies.h
 
 # List all syntax-check exemptions: