]> xenbits.xensource.com Git - libvirt.git/commit
build: fix deep VPATH builds
authorEric Blake <eblake@redhat.com>
Thu, 3 Nov 2011 19:50:13 +0000 (13:50 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 3 Nov 2011 19:50:13 +0000 (13:50 -0600)
commit5d4b0c4c806fd85cceab19678bd4c60d4d515389
tree8eaacbc3b27a412f0b09a07b6207030b7204b440
parent2d9931d20cdcd6015d238820ce14d7ae416d07c3
build: fix deep VPATH builds

I ran into the following build failure:
$ mkdir -p build1 build2/a/very/deep/hierarcy
$ cd build2/a/very/deep/hierarcy
$ ../../../../../configure && make
$ cd ../../../../build1
$ ../configure && make
...
../../src/remote/remote_protocol.c:7:55: fatal error: ../../../../../src/remote/remote_protocol.h: No such file or directory

Turns out that we were sometimes generating the remote_protocol.c
file with information from the VPATH build, which is bad, since
any file shipped in the tarball should be idempotent no matter how
deep the VPATH build tree that created it.

* src/rpc/genprotocol.pl: Don't embed VPATH into generated file.
src/rpc/genprotocol.pl