mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-05-22 10:25:14 -04:00
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.
19 lines
639 B
Makefile
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
|