Date: Tue, 03 Oct 2000 14:59:04 +0900 From: Jun Kuriyama <kuriyama@imgsrc.co.jp> To: Doc Team <freebsd-doc@FreeBSD.org> Subject: current www building problem Message-ID: <7maecmea8n.wl@waterblue.imgsrc.co.jp>
next in thread | raw e-mail | index | archive | help
Current web.mk has following target.
.sgml.html:
${PREHTML} ${PREHTMLFLAGS} ${.IMPSRC} |\
SGML_CATALOG_FILES='' ${SGMLNORM} ${SGMLNORMFLAGS} > ${.TARGET}
But if $SGMLNORM fails, broken ${.TARGET} is created. And if we type
"make" again, it finishes successfully because ${.TARGET} is newer
than ${.IMPSRC}.
How should we do to remove ${.TARGET} if it fails? One idea is:
.sgml.html:
(${PREHTML} ${PREHTMLFLAGS} ${.IMPSRC} |\
SGML_CATALOG_FILES='' ${SGMLNORM} ${SGMLNORMFLAGS} > ${.TARGET})\
|| rm -f ${.TARGET}
but it seems dirty... Does anyone have good idea?
--
Jun Kuriyama <kuriyama@imgsrc.co.jp> // IMG SRC, Inc.
<kuriyama@FreeBSD.org> // FreeBSD Project
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7maecmea8n.wl>
