Date: Thu, 5 Oct 2000 00:31:49 +0200 From: Neil Blakey-Milner <nbm@mithrandr.moria.org> To: Wolfram Schneider <bsd@panke.de.freebsd.org> Cc: Jun Kuriyama <kuriyama@imgsrc.co.jp>, Doc Team <freebsd-doc@FreeBSD.ORG> Subject: Re: current www building problem Message-ID: <20001005003149.A84322@mithrandr.moria.org> In-Reply-To: <20001004222622.A1198@paula.panke.de.freebsd.org>; from bsd@panke.de.freebsd.org on Wed, Oct 04, 2000 at 10:26:23PM %2B0200 References: <7maecmea8n.wl@waterblue.imgsrc.co.jp> <20001004222622.A1198@paula.panke.de.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed 2000-10-04 (22:26), Wolfram Schneider wrote: > On 2000-10-03 14:59:04 +0900, Jun Kuriyama wrote: > > 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? > > use a temp file and rename it to the target if successfully. > > .sgml.html: > ${PREHTML} ${PREHTMLFLAGS} ${.IMPSRC} |\ > SGML_CATALOG_FILES='' ${SGMLNORM} ${SGMLNORMFLAGS} > ${.TARGET}.tmp > mv -f ${.TARGET}.tmp ${.TARGET} If we do that, we need to add foo.html.tmp to CLEANFILES. Neil -- Neil Blakey-Milner Sunesi Clinical Systems nbm@mithrandr.moria.org 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?20001005003149.A84322>