]> xenbits.xensource.com Git - libvirt.git/commitdiff
build: allow 'make syntax-check' on fresh checkout
authorEric Blake <eblake@redhat.com>
Tue, 28 Jun 2011 15:50:11 +0000 (09:50 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 30 Jun 2011 22:45:56 +0000 (16:45 -0600)
For good or for bad, I did a fresh checkout, ./autogen.sh, then
'configure', then 'make syntax-check', and was surprised that it
failed.  Running 'make' before 'make syntax-check' cleaned up the
issue, but this patch makes it work up front.

* cfg.mk (sc_po_check): Add prerequisites.

cfg.mk

diff --git a/cfg.mk b/cfg.mk
index 69f35a35f2dd6a2b297b8b1a3d06a2cb0f72f051..b00cda36509e9104a891c347726aeb6a905f66a4 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -605,6 +605,14 @@ _autogen:
 # regenerate HACKING as part of the syntax-check
 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 \
+               $(srcdir)/src/remote/remote_client_bodies.h
+$(srcdir)/daemon/remote_dispatch.h:
+       $(MAKE) -C daemon remote_dispatch.h
+$(srcdir)/src/remote/remote_client_bodies.h:
+       $(MAKE) -C src remote/remote_client_bodies.h
+
 # List all syntax-check exemptions:
 exclude_file_name_regexp--sc_avoid_strcase = ^tools/virsh\.c$$