Hash :
7d689fab
Author :
Date :
2025-05-06T10:54:46
doc: Fix doc installation with Autotools
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
## Process this file with automake to produce Makefile.in
EXTRA_DIST = \
Doxyfile \
libxml2.css \
mainpage.md \
meson.build \
xml2-config.1 \
xmlcatalog.xml \
xmllint.xml
all-local: html.stamp
html.stamp: Doxyfile
SOURCE_ROOT=$(top_srcdir)/ BUILD_ROOT=$(top_builddir)/ \
$(DOXYGEN) -q $<
@touch $@
CLEANFILES = html.stamp
clean-local:
rm -rf html xml
if WITH_DOCS
man_MANS = xml2-config.1 xmllint.1
doc_DATA = xmllint.html
CLEANFILES += xmllint.1 xmllint.html
if WITH_CATALOG_SOURCES
if WITH_OUTPUT_SOURCES
man_MANS += xmlcatalog.1
doc_DATA += xmlcatalog.html
CLEANFILES += xmlcatalog.1 xmlcatalog.html
endif
endif
DOCBOOK_MAN = http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
DOCBOOK_HTML = http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl
.xml.1:
$(XSLTPROC) --nonet --novalid --param man.output.quietly 1 \
-o $@ $(DOCBOOK_MAN) $<
.xml.html:
$(XSLTPROC) --nonet --novalid -o $@ $(DOCBOOK_HTML) $<
install-data-local:
$(MKDIR_P) $(DESTDIR)$(docdir)/html/search
$(INSTALL_DATA) \
html/*.css \
html/*.html \
html/*.js \
html/*.png \
html/*.svg \
$(DESTDIR)$(docdir)/html
$(INSTALL_DATA) \
html/search/*.css \
html/search/*.js \
html/search/*.svg \
$(DESTDIR)$(docdir)/html/search
uninstall-local:
-rm -rf $(DESTDIR)$(docdir)/html
endif