]> xenbits.xensource.com Git - libvirt.git/commit
build: fix 'make dist' on virgin checkout
authorEric Blake <eblake@redhat.com>
Wed, 13 Jun 2012 03:49:22 +0000 (21:49 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 13 Jun 2012 04:35:55 +0000 (22:35 -0600)
commit9b5970c6c4ef267f2ba7d43d8b4d4996659c9fe1
tree3484367a7067197439a90439248bb9884bdb3d9f
parent78d078c8241cb54b72ccfe58ae095a0a425f784a
build: fix 'make dist' on virgin checkout

'make dist' was depending on *protocol-structs files, which are
stored in git but in turn depended on generated files.  We still
want to ship the protocol-structs files, but by renaming the
tests to something not matching a file name, we separate 'make
check' (which depends on the generated file) from 'make dist'
(which only depends on the git files).  After all, the tarball
should never depend on a generated file not stored in git.

I found one more case of a git file depending on a generated
file, in a bogus virkeycode.c listing; but at least this one
had no associated rules so it never broke 'make dist'.

Reported by Wen Congyang.  Latent bug has been present since
commit 62dee6f, but only recently exposed by commit 7bff56a.

* src/Makefile.am ($(srcdir)/util/virkeycode.c): Drop useless
dependency.
(BUILT_SOURCES): ...and build virkeymaps.h sooner.
(PROTOCOL_STRUCTS): Rather than depend on the struct file...
(check-local): ...convert things into a phony target of...
(check-protocol): ...a new check.
($(srcdir)/remote_protocol-struct): Rename to isolate the distributed
file from the conditional test.
(PDWTAGS): Deal with rename.  Swap to compare 'expected actual'.
src/Makefile.am