]> xenbits.xensource.com Git - libvirt.git/commitdiff
docs: Rebuild apihtml docs when source changes
authorJohn Ferlan <jferlan@redhat.com>
Tue, 6 Dec 2016 13:38:46 +0000 (08:38 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 7 Dec 2016 11:07:16 +0000 (06:07 -0500)
When changing one of the src/libvirt-*.c files to alter the docs, the
adjusted files weren't being built.  Added them into APIBUILD_STAMP and
then added that to the html/index.html rule which is used for the
$(apihtml_generated) generated rule.

Also, for clean we can remove the html/*.html files

docs/Makefile.am

index dbc6c0d4ab8808b4a0527b0a3c3df6879199342d..790c0a20efb3af1f39478059a37cbb2cb7c2902a 100644 (file)
@@ -246,7 +246,7 @@ $(srcdir)/hvsupport.html.in: $(srcdir)/hvsupport.pl $(api_DATA) \
 
 $(apihtml_generated): html/index.html
 
-html/index.html: libvirt-api.xml newapi.xsl page.xsl
+html/index.html: libvirt-api.xml newapi.xsl page.xsl $(APIBUILD_STAMP)
        $(AM_V_GEN)if [ -x $(XSLTPROC) ] ; then \
          $(XSLTPROC) --nonet -o $(srcdir)/ \
          --stringparam builddir '$(abs_top_builddir)' \
@@ -304,6 +304,16 @@ $(APIBUILD_STAMP): $(srcdir)/apibuild.py \
                $(top_srcdir)/include/libvirt/libvirt-admin.h \
                $(top_srcdir)/include/libvirt/virterror.h \
                $(top_srcdir)/src/libvirt.c \
+               $(top_srcdir)/src/libvirt-domain-snapshot.c \
+               $(top_srcdir)/src/libvirt-domain.c \
+               $(top_srcdir)/src/libvirt-host.c \
+               $(top_srcdir)/src/libvirt-interface.c \
+               $(top_srcdir)/src/libvirt-network.c \
+               $(top_srcdir)/src/libvirt-nodedev.c \
+               $(top_srcdir)/src/libvirt-nwfilter.c \
+               $(top_srcdir)/src/libvirt-secret.c \
+               $(top_srcdir)/src/libvirt-storage.c \
+               $(top_srcdir)/src/libvirt-stream.c \
                $(top_srcdir)/src/libvirt-lxc.c \
                $(top_srcdir)/src/libvirt-qemu.c \
                $(top_srcdir)/src/libvirt-admin.c \
@@ -318,7 +328,7 @@ check-local: all
 dist-local: all
 
 clean-local:
-       rm -f *~ *.bak *.hierarchy *.signals *-unused.txt *.html
+       rm -f *~ *.bak *.hierarchy *.signals *-unused.txt *.html html/*.html
 
 maintainer-clean-local: clean-local
        rm -rf $(srcdir)/libvirt-api.xml $(srcdir)/libvirt-refs.xml