From ffd5f97ed73a670f1b7687d9a39e80f5f7941332 Mon Sep 17 00:00:00 2001 From: Sebastian Geiger Date: Sat, 30 Jun 2018 23:17:50 +0200 Subject: [PATCH] help/manual: install gtk-doc html version of manual This makes the manual viewable in devhelp. --- help/manual/Makefile.am | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/help/manual/Makefile.am b/help/manual/Makefile.am index 9f53322..78fd0bd 100644 --- a/help/manual/Makefile.am +++ b/help/manual/Makefile.am @@ -17,14 +17,49 @@ 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; \ + for i in $(top_srcdir)/style/*.png $(top_srcdir)/style/*.css; do \ + echo ' $(INSTALL_DATA) '$$i $$installdir; \ + $(INSTALL_DATA) $$i $${installdir}; \ + done; \ + 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) -GITIGNOREFILES = C/version.ent ??_??/$(HELP_ID).xml ??/$(HELP_ID).xml +GITIGNOREFILES = C/html C/version.ent ??_??/$(HELP_ID).xml ??/$(HELP_ID).xml -include $(top_srcdir)/git.mk -- 2.11.4.GIT