From owner-freebsd-doc Tue Oct 3 18:42:29 2000 Delivered-To: freebsd-doc@freebsd.org Received: from ns1.sunesi.net (ns1.sunesi.net [196.15.192.194]) by hub.freebsd.org (Postfix) with ESMTP id 9553637B502 for ; Tue, 3 Oct 2000 18:42:26 -0700 (PDT) Received: from nbm by ns1.sunesi.net with local (Exim 3.03 #1) id 13gdZa-000JZm-00; Wed, 04 Oct 2000 03:42:18 +0200 Date: Wed, 4 Oct 2000 03:42:18 +0200 From: Neil Blakey-Milner To: Jun Kuriyama Cc: Doc Team Subject: Re: current www building problem Message-ID: <20001004034217.A75196@mithrandr.moria.org> References: <7maecmea8n.wl@waterblue.imgsrc.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <7maecmea8n.wl@waterblue.imgsrc.co.jp>; from kuriyama@imgsrc.co.jp on Tue, Oct 03, 2000 at 02:59:04PM +0900 Organization: Sunesi Clinical Systems X-Operating-System: FreeBSD 3.3-RELEASE i386 X-URL: http://rucus.ru.ac.za/~nbm/ Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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