1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2026-01-26 21:41:34 +03:00
Files
libxml2/doc/Makefile.am
2025-05-06 19:51:38 +02:00

67 lines
1.3 KiB
Makefile

## 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