[libvirt] [PATCH] build: support 'make check' in pristine tree

Otherwise, 'make check' in the python dir tries to reference a file in docs that is built by 'make' but not by 'make check'. * docs/Makefile.am (check-local): New rule. Reported by Matthias Bolte. --- Test with make && rm docs/libvirt-api.xml && make check docs/Makefile.am | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/docs/Makefile.am b/docs/Makefile.am index 70b9e51..41068c6 100644 --- a/docs/Makefile.am +++ b/docs/Makefile.am @@ -143,6 +143,8 @@ html/%-%.html html/%-virterror.html %-api.xml %-refs.xml: \ $(srcdir)/../src/%.c \ $(srcdir)/../src/util/virterror.c +check-local: all + clean-local: rm -f *~ *.bak *.hierarchy *.signals *-unused.txt -- 1.7.0.1

2010/5/26 Eric Blake <eblake@redhat.com>:
Otherwise, 'make check' in the python dir tries to reference a file in docs that is built by 'make' but not by 'make check'.
* docs/Makefile.am (check-local): New rule. Reported by Matthias Bolte. ---
Test with make && rm docs/libvirt-api.xml && make check
docs/Makefile.am | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/docs/Makefile.am b/docs/Makefile.am index 70b9e51..41068c6 100644 --- a/docs/Makefile.am +++ b/docs/Makefile.am @@ -143,6 +143,8 @@ html/%-%.html html/%-virterror.html %-api.xml %-refs.xml: \ $(srcdir)/../src/%.c \ $(srcdir)/../src/util/virterror.c
+check-local: all + clean-local: rm -f *~ *.bak *.hierarchy *.signals *-unused.txt
-- 1.7.0.1
ACK, this fixes the problem. Matthias

On 05/26/2010 04:09 PM, Matthias Bolte wrote:
2010/5/26 Eric Blake <eblake@redhat.com>:
Otherwise, 'make check' in the python dir tries to reference a file in docs that is built by 'make' but not by 'make check'.
ACK, this fixes the problem.
Thanks; pushed. -- Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org
participants (2)
-
Eric Blake
-
Matthias Bolte