Add a workaround to fix a build problem when using osgmlnorm (activated

by $OPENJADE knob).  The reason is still unclear, but it is likely
to be caused by some OpenSP's bug.

Spotted by:	pav
This commit is contained in:
Hiroki Sato 2006-08-24 20:02:06 +00:00
parent 3b141e3bef
commit d16c486bf5
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=28530

View file

@ -1,5 +1,5 @@
# bsd.web.mk
# $FreeBSD: www/share/mk/web.site.mk,v 1.73 2006/05/13 03:27:22 simon Exp $
# $FreeBSD: www/share/mk/web.site.mk,v 1.74 2006/08/19 21:18:53 hrs Exp $
#
# Build and install a web site.
@ -202,11 +202,17 @@ PREHTML?= ${SED} -e ${DATESUBST} ${BASESUBST}
GENDOCS+= ${DOCS:M*.sgml:S/.sgml$/.html/g}
ORPHANS:= ${ORPHANS:N*.sgml}
# XXX: using a pipe between ${PREHTML} and ${SGMLNORM} should be better,
# but very strange errors will be reported when using osgmlnorm (from
# OpenSP. sgmlnorm works fine). For the moment, we use a temporary file
# to prevent it.
.sgml.html: ${_SGML_INCLUDES}
${PREHTML} ${PREHTMLOPTS} ${.IMPSRC} | \
${PREHTML} ${PREHTMLOPTS} ${.IMPSRC} > ${.IMPSRC}-tmp
${SETENV} SGML_CATALOG_FILES= \
${SGMLNORM} ${SGMLNORMOPTS} > ${.TARGET} || \
(${RM} -f ${.TARGET} && false)
${SGMLNORM} ${SGMLNORMOPTS} ${.IMPSRC}-tmp > ${.TARGET} || \
(${RM} -f ${.IMPSRC}-tmp ${.TARGET} && false)
${RM} -f ${.IMPSRC}-tmp
.if !defined(NO_TIDY)
-${TIDY} ${TIDYOPTS} ${.TARGET}
.endif