build: fix VPATH builds

The build currently fails when trying to create virnetprotocol.c
into $(builddir)/rpc, which doesn't exist.  But since the file
is part of the tarball, it should be generated into $(srcdir).
Caught by autobuild.sh.

* src/Makefile.am (VIR_NET_RPC_GENERATED): Generate into srcdir.
This commit is contained in:
Eric Blake 2011-06-24 20:48:49 -06:00
parent e0858026a2
commit 481e4d795c

View File

@ -1201,7 +1201,9 @@ EXTRA_DIST += \
rpc/gendispatch.pl \
rpc/genprotocol.pl
VIR_NET_RPC_GENERATED = rpc/virnetprotocol.h rpc/virnetprotocol.c
VIR_NET_RPC_GENERATED = \
$(srcdir)/rpc/virnetprotocol.h \
$(srcdir)/rpc/virnetprotocol.c
BUILT_SOURCES += $(VIR_NET_RPC_GENERATED)