help/manual: install gtk-doc html version of manual
[gtk-doc.git] / help / manual / Makefile.am
blob78fd0bd36baf84d217583ca6100a85f34f7d138e
1 NULL =
3 if HAVE_YELP_TOOLS
4 @YELP_HELP_RULES@
5 endif
7 $(srcdir)/C/version.ent: $(srcdir)/version.ent.in Makefile
8         echo "To: $@"
9         echo "From: $<"
10         $(AM_V_GEN)sed \
11                -e "s|\@VERSION\@|$(PACKAGE_VERSION)|" \
12                $< > $@
14 HELP_ID = gtk-doc-manual
16 HELP_FILES = \
17     index.docbook \
18     fdl-appendix.xml
20 C/html/index.html: Makefile
21         $(AM_V_GEN)xsltproc --nonet \
22              --xinclude \
23              --output $(srcdir)/C/html/ \
24              --stringparam gtkdoc.bookname gtk-doc-manual \
25              --stringparam gtkdoc.version $(VERSION) \
26              $(top_srcdir)/gtk-doc.xsl \
27              $(srcdir)/C/index.docbook
29 HELP_EXTRA = \
30     version.ent \
31     html/index.html \
32     $(NULL)
34 install-data-local:
35         @installfiles=`echo $(srcdir)/C/html/*`; \
36         if test "$$installfiles" = '$(srcdir)/C/html/*'; \
37         then echo 1>&2 'Nothing to install' ; \
38         else \
39           installdir="$(DESTDIR)$(datadir)/gtk-doc/html/$(HELP_ID)"; \
40           $(mkinstalldirs) $${installdir} ; \
41           for i in $$installfiles; do \
42             echo ' $(INSTALL_DATA) '$$i $$installdir; \
43             $(INSTALL_DATA) $$i $${installdir}; \
44           done; \
45           for i in $(top_srcdir)/style/*.png $(top_srcdir)/style/*.css; do \
46             echo ' $(INSTALL_DATA) '$$i $$installdir; \
47             $(INSTALL_DATA) $$i $${installdir}; \
48           done; \
49         fi
51 uninstall-local:
52         @if test -n "$(DOC_MODULE_VERSION)"; then \
53           installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \
54         else \
55           installdir="$(DESTDIR)$(TARGET_DIR)"; \
56         fi; \
57         rm -rf $${installdir}
59 HELP_LINGUAS = bn_IN cs de el en_GB es fr gl gu pt_BR sl sv ta te zh_CN
61 CLEANFILES = $(_HELP_LC_FILES) $(_HELP_LC_STAMPS) $(_HELP_MOFILES)
63 GITIGNOREFILES = C/html C/version.ent ??_??/$(HELP_ID).xml ??/$(HELP_ID).xml
65 -include $(top_srcdir)/git.mk