Date: Wed, 4 Oct 2000 03:42:18 +0200 From: Neil Blakey-Milner <nbm@mithrandr.moria.org> To: Jun Kuriyama <kuriyama@imgsrc.co.jp> Cc: Doc Team <freebsd-doc@FreeBSD.org> Subject: Re: current www building problem Message-ID: <20001004034217.A75196@mithrandr.moria.org> In-Reply-To: <7maecmea8n.wl@waterblue.imgsrc.co.jp>; from kuriyama@imgsrc.co.jp on Tue, Oct 03, 2000 at 02:59:04PM %2B0900 References: <7maecmea8n.wl@waterblue.imgsrc.co.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue 2000-10-03 (14:59), 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? I've noticed this too (and boy is it irritating). One thing to consider - you must have ``|| (rm -f ${.TARGET}; exit 1)'', not ``|| rm -f ${.TARGET}'', or you'll just carry on going. I thought ``.PRECIOUS'' was supposed to solve this for you, but it doesn't look that way. If noone comes up with an alternative, I think we should just live with ugly. Cheers, 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?20001004034217.A75196>