[libvirt] [PATCHv2] docs: install the generated html files when make install is run

Justin Clift jclift at redhat.com
Sun Oct 24 09:34:37 UTC 2010


Previously, only the API docs were installed, rather than the
complete documentation set.  This commit ensures the complete
documentation set is installed.
---
 docs/Makefile.am |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/docs/Makefile.am b/docs/Makefile.am
index 27804a2..7a74753 100644
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -26,6 +26,11 @@ devhelphtml =			\
   devhelp/libvirt-libvirt.html	\
   devhelp/libvirt-virterror.html
 
+css =         \
+  generic.css \
+  libvirt.css \
+  main.css
+
 devhelppng =		\
   devhelp/home.png	\
   devhelp/left.png	\
@@ -76,7 +81,7 @@ EXTRA_DIST=					\
   site.xsl newapi.xsl news.xsl page.xsl \
   $(dot_html) $(dot_html_in) $(gif) $(apihtml) $(apipng) \
   $(devhelphtml) $(devhelppng) $(devhelpcss) $(devhelpxsl) \
-  $(xml) $(fig) $(png) \
+  $(xml) $(fig) $(png) $(css) \
   $(patches) \
   sitemap.html.in \
   todo.pl todo.cfg-example
@@ -169,6 +174,10 @@ rebuild: api all
 
 install-data-local:
 	$(mkinstalldirs) $(DESTDIR)$(HTML_DIR)
+	for f in $(css) $(dot_html); do \
+	  $(INSTALL) -m 0644 $(srcdir)/$$f $(DESTDIR)$(HTML_DIR); done
+	for f in $(gif) $(png); do \
+	  $(INSTALL) -m 0644 $(srcdir)/$$f $(DESTDIR)$(HTML_DIR); done
 	-$(INSTALL) -m 0644 $(srcdir)/Libxml2-Logo-90x34.gif $(DESTDIR)$(HTML_DIR)
 	$(mkinstalldirs) $(DESTDIR)$(HTML_DIR)/html
 	for h in $(apihtml); do \
-- 
1.7.2.3




More information about the libvir-list mailing list