Skip to content

Commit 09f51ec

Browse files
committed
Add Makefile rules to rebuild HTML man pages
This should make sure that the online version of the man pages for xmllint and xmlcatalog stay up to date. Also rebuild both HTML documents.
1 parent ca01f81 commit 09f51ec

File tree

3 files changed

+309
-277
lines changed

3 files changed

+309
-277
lines changed

doc/Makefile.am

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ docs: web $(top_builddir)/NEWS libxml2.xsa $(man_MANS)
243243

244244
api: libxml2-api.xml libxml2-refs.xml $(APIPAGES) $(srcdir)/html/index.html $(WIN32_DIR)/libxml2.def.src ../elfgcchack.h $(srcdir)/site.xsl
245245

246-
web: $(PAGES)
246+
web: $(PAGES) xmllint.html xmlcatalog_man.html
247247

248248
../elfgcchack.h: $(srcdir)/elfgcchack.xsl $(srcdir)/libxml2-api.xml
249249
-@(if [ -x $(XSLTPROC) ] ; then \
@@ -314,9 +314,15 @@ libxml2-api.xml libxml2-refs.xml ../libxml2.syms: apibuild.py symbols.xml syms.x
314314
xmllint.1: xmllint.xml
315315
-@($(XSLTPROC) --nonet xmllint.xml)
316316

317+
xmllint.html: xmllint.xml
318+
-@($(XSLTPROC) --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl xmllint.xml)
319+
317320
xmlcatalog.1: xmlcatalog_man.xml
318321
-@($(XSLTPROC) --nonet xmlcatalog_man.xml)
319322

323+
xmlcatalog_man.html: xmlcatalog_man.xml
324+
-@($(XSLTPROC) --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl xmlcatalog_man.xml)
325+
320326
check-extra-dist:
321327
for f in $(EXTRA_DIST_wc) ; do echo $$f; done | sort -u >tmp.EXTRA_DIST_wc
322328
for f in $(EXTRA_DIST) ; do echo $$f; done | sort >tmp.EXTRA_DIST

0 commit comments

Comments
 (0)