monitoring-plugins/doc/makefile
kibruh 110370b105 docs: autodetect docbook-xsl path and document dependencies
Auto-detect DocBook XSL stylesheet locations in the doc makefile so the
build works across distro-specific install paths without manual symlinks.

Document required Debian/Ubuntu packages in doc/README and refresh
copyright year text in the XML guidelines document.
2026-04-22 20:29:54 +02:00

19 lines
639 B
Makefile

# Quick makefile to create developer-guidelines.html
DOCBOOK_XSL := $(firstword $(wildcard \
/usr/share/sgml/docbook/xsl-stylesheets/html/docbook.xsl \
/usr/share/xml/docbook/stylesheet/docbook-xsl/html/docbook.xsl))
ifeq ($(DOCBOOK_XSL),)
$(error Could not find DocBook XSL stylesheet; install docbook-xsl)
endif
developer-guidelines.html: developer-guidelines.xml developer-guidelines.css
xsltproc --nonet \
--stringparam html.stylesheet developer-guidelines.css \
-o developer-guidelines.html \
$(DOCBOOK_XSL) \
developer-guidelines.xml
clean:
rm -f developer-guidelines.html developer-guidelines.html.last jade-out.fot