If OPENJADE is defined, use the openjade replacement tools like
'openjade', 'onsgmls', like 'osgmlnorm'.
This commit is contained in:
parent
1c78f1c07d
commit
c97832896f
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=8041
2 changed files with 20 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# $FreeBSD: doc/share/mk/doc.docbook.mk,v 1.17 2000/09/25 08:17:03 nik Exp $
|
||||
# $FreeBSD: doc/share/mk/doc.docbook.mk,v 1.18 2000/09/28 23:29:47 nbm Exp $
|
||||
#
|
||||
# This include file <doc.docbook.mk> handles building and installing of
|
||||
# DocBook documentation in the FreeBSD Documentation Project.
|
||||
|
@ -47,7 +47,13 @@
|
|||
|
||||
MASTERDOC?= ${.CURDIR}/${DOC}.sgml
|
||||
|
||||
JADE= ${PREFIX}/bin/jade
|
||||
.if !defined(OPENJADE)
|
||||
JADE?= ${PREFIX}/bin/jade
|
||||
JADECATALOG?= ${PREFIX}/share/sgml/jade/catalog
|
||||
.else
|
||||
JADE?= ${PREFIX}/bin/openjade
|
||||
JADECATALOG?= ${PREFIX}/share/sgml/openjade/catalog
|
||||
.endif
|
||||
|
||||
DSLHTML?= ${DOC_PREFIX}/share/sgml/default.dsl
|
||||
DSLPRINT?= ${DOC_PREFIX}/share/sgml/default.dsl
|
||||
|
@ -55,7 +61,6 @@ FREEBSDCATALOG= ${DOC_PREFIX}/share/sgml/catalog
|
|||
LANGUAGECATALOG=${DOC_PREFIX}/${LANGCODE}/share/sgml/catalog
|
||||
|
||||
DOCBOOKCATALOG= ${PREFIX}/share/sgml/docbook/catalog
|
||||
JADECATALOG= ${PREFIX}/share/sgml/jade/catalog
|
||||
DSSSLCATALOG= ${PREFIX}/share/sgml/docbook/dsssl/modular/catalog
|
||||
|
||||
LIB_IMAGES?=
|
||||
|
@ -241,7 +246,7 @@ ${DOC}.tar: ${SRCS}
|
|||
#
|
||||
|
||||
lint validate:
|
||||
nsgmls -s -c ${FREEBSDCATALOG} -c ${DSSSLCATALOG} -c ${DOCBOOKCATALOG} -c ${JADECATALOG} ${EXTRA_CATALOGS:S/^/-c /g} ${MASTERDOC}
|
||||
${NSGMLS} -s -c ${FREEBSDCATALOG} -c ${DSSSLCATALOG} -c ${DOCBOOKCATALOG} -c ${JADECATALOG} ${EXTRA_CATALOGS:S/^/-c /g} ${MASTERDOC}
|
||||
|
||||
# ------------------------------------------------------------------------
|
||||
#
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# $FreeBSD: doc/share/mk/doc.html.mk,v 1.2 2000/07/19 01:46:48 jhb Exp $
|
||||
# $FreeBSD: doc/share/mk/doc.html.mk,v 1.3 2000/07/23 16:27:58 nik Exp $
|
||||
#
|
||||
# This include file <doc.html.mk> handles building and installing of
|
||||
# HTML documentation in the FreeBSD Documentation Project.
|
||||
|
@ -47,6 +47,14 @@ KNOWN_FORMATS= html txt tar pdb
|
|||
|
||||
HTMLCATALOG= ${PREFIX}/share/sgml/html/catalog
|
||||
|
||||
.if !defined(OPENJADE)
|
||||
NSGMLS?= nsgmls
|
||||
SGMLNORM?= sgmlnorm
|
||||
.else
|
||||
NSGMLS?= onsgmls
|
||||
SGMLNORM?= osgmlnorm
|
||||
.endif
|
||||
|
||||
# ------------------------------------------------------------------------
|
||||
#
|
||||
|
||||
|
@ -96,7 +104,7 @@ CLEANFILES+= ${DOC}.${_curformat}.${_curcomp}
|
|||
all: ${_docs}
|
||||
|
||||
${DOC}.html: ${SRCS}
|
||||
sgmlnorm -c ${HTMLCATALOG} ${.ALLSRC} > ${.TARGET}
|
||||
${SGMLNORM} -c ${HTMLCATALOG} ${.ALLSRC} > ${.TARGET}
|
||||
.if !defined(NO_TIDY)
|
||||
-tidy -i -m -f /dev/null ${TIDYFLAGS} ${.TARGET}
|
||||
.endif
|
||||
|
@ -134,7 +142,7 @@ ${DOC}.${_curformat}:
|
|||
#
|
||||
|
||||
lint validate:
|
||||
nsgmls -s -c ${HTMLCATALOG} ${MASTERDOC}
|
||||
${NSGMLS} -s -c ${HTMLCATALOG} ${MASTERDOC}
|
||||
|
||||
# ------------------------------------------------------------------------
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue