From 643c47500e3f9a51a2114eb86cd421f1a4d61acc Mon Sep 17 00:00:00 2001 From: James O'Gorman Date: Mon, 24 Nov 2008 23:53:26 +0000 Subject: Fix docs Makefile on non-BSD systems. --- docs/Makefile | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'docs') diff --git a/docs/Makefile b/docs/Makefile index 0a5d6145..c8b41f1c 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -8,14 +8,6 @@ NOCHUNKBOOKXSL=bb-nochunk-book.xsl MANXSL=bb-man.xsl HTMLPREFIX=box-html VPATH= adminguide -# If your OS declares a system make variable, add a .elif statement here -# with the path to the locally-installed DocBook stylesheet -.if .FreeBSD -# Requires textproc/docbook-xsl port installed -DOCBOOK=file:///usr/local/share/xsl/docbook/manpages/docbook.xsl -.else -DOCBOOK=http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl -.endif .SUFFIXES: .html .xml .1 .5 .8 all: docs @@ -42,7 +34,12 @@ ExceptionCodes.xml: ../ExceptionCodes.txt manpages: $(MANXSL) man-dirs man-nroff man-html $(MANXSL): $(MANXSL).tmpl - @sed -e 's,%%DOCBOOK%%,$(DOCBOOK),' $(MANXSL).tmpl > $(MANXSL) + @if [ -f /usr/local/share/xsl/docbook/manpages/docbook.xsl ]; then \ + DOCBOOK=file:///usr/local/share/xsl/docbook/manpages/docbook.xsl; \ + else \ + DOCBOOK=http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl; \ + fi; \ + sed -e "s,%%DOCBOOK%%,$${DOCBOOK}," $(MANXSL).tmpl > $(MANXSL) man-dirs: man/.there $(HTMLPREFIX)/man-html/.there -- cgit v1.2.3