]> xenbits.xensource.com Git - libvirt.git/commitdiff
build: avoid "make rpm" failure in docs/
authorJim Meyering <meyering@redhat.com>
Thu, 25 Feb 2010 09:35:20 +0000 (10:35 +0100)
committerJim Meyering <meyering@redhat.com>
Thu, 25 Feb 2010 13:14:51 +0000 (14:14 +0100)
Add missing rule to build html/libvirt-libvirt.html.
Use a GNU Make pattern rule to avoid running apibuild.py once
for each out-of-date target, in a parallel build.
* docs/Makefile.am

docs/Makefile.am

index dbbd1ef891a75e8be70c935de847152446986b1f..edf6fc8bf5a247c5386f79d8f7dc5e1298bc9e29 100644 (file)
@@ -123,17 +123,20 @@ html/index.html: libvirt-api.xml newapi.xsl page.xsl sitemap.html.in
          $(XMLLINT) --nonet --valid --noout html/*.html ; \
          else echo "missing XHTML1 DTD" ; fi ; fi );
 
-devhelp/index.html devhelp/libvirt.devhelp: libvirt-api.xml $(devhelpxsl)
+$(devhelphtml): libvirt-api.xml $(devhelpxsl)
        -@(echo Rebuilding devhelp files)
        -@(if [ -x $(XSLTPROC) ] ; then \
-         $(XSLTPROC) --nonet -o devhelp/libvirt.devhelp $(top_srcdir)/docs/devhelp/devhelp.xsl $(top_srcdir)/docs/libvirt-api.xml ; fi );
+         $(XSLTPROC) --nonet -o devhelp/libvirt.devhelp \
+          $(top_srcdir)/docs/devhelp/devhelp.xsl libvirt-api.xml ; fi );
 
-
-libvirt-api.xml libvirt-refs.xml: apibuild.py \
-               $(srcdir)/../include/libvirt/*.h \
-               $(srcdir)/../src/libvirt.c $(srcdir)/../src/util/virterror.c
+html/%-%.html html/%-virterror.html %-api.xml %-refs.xml: $(srcdir)/apibuild.py
        -srcdir=$(srcdir) $(srcdir)/apibuild.py
 
+html/%-%.html html/%-virterror.html %-api.xml %-refs.xml: \
+               $(srcdir)/../include/%/*.h \
+               $(srcdir)/../src/%.c \
+               $(srcdir)/../src/util/virterror.c
+
 clean-local:
        rm -f *~ *.bak *.hierarchy *.signals *-unused.txt