[gtk-doc/wip/documentation] install gtk-doc manual html version



commit 48b74a293abaf87f68f37ecac6386182f6398124
Author: Sebastian Geiger <sbastig gmx net>
Date:   Sat Jun 30 23:17:50 2018 +0200

    install gtk-doc manual html version
    
    to be viewable in devhelp

 help/manual/Makefile.am | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)
---
diff --git a/help/manual/Makefile.am b/help/manual/Makefile.am
index 7345dbc..57f4f69 100644
--- a/help/manual/Makefile.am
+++ b/help/manual/Makefile.am
@@ -17,10 +17,42 @@ HELP_FILES = \
     index.docbook \
     fdl-appendix.xml
 
+C/html/index.html: Makefile
+       $(AM_V_GEN)xsltproc --nonet \
+             --xinclude \
+             --output $(srcdir)/C/html/ \
+             --stringparam gtkdoc.bookname gtk-doc-manual \
+             --stringparam gtkdoc.version $(VERSION) \
+             $(top_srcdir)/gtk-doc.xsl \
+             $(srcdir)/C/index.docbook
+
 HELP_EXTRA = \
     version.ent \
+    html/index.html \
     $(NULL)
 
+install-data-local:
+       @installfiles=`echo $(srcdir)/C/html/*`; \
+       if test "$$installfiles" = '$(srcdir)/C/html/*'; \
+       then echo 1>&2 'Nothing to install' ; \
+       else \
+         installdir="$(DESTDIR)$(datadir)/gtk-doc/html/$(HELP_ID)"; \
+         $(mkinstalldirs) $${installdir} ; \
+         for i in $$installfiles; do \
+           echo ' $(INSTALL_DATA) '$$i $$installdir; \
+           $(INSTALL_DATA) $$i $${installdir}; \
+         done; \
+         $(GTKDOC_REBASE) --relative --dest-dir=$(DESTDIR) --html-dir=$${installdir}; \
+       fi
+
+uninstall-local:
+       @if test -n "$(DOC_MODULE_VERSION)"; then \
+         installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \
+       else \
+         installdir="$(DESTDIR)$(TARGET_DIR)"; \
+       fi; \
+       rm -rf $${installdir}
+
 HELP_LINGUAS = bn_IN cs de el en_GB es fr gl gu pt_BR sl sv ta te zh_CN
 
 CLEANFILES = $(_HELP_LC_FILES) $(_HELP_LC_STAMPS) $(_HELP_MOFILES)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]