From owner-freebsd-doc Mon Oct 2 22:59:59 2000 Delivered-To: freebsd-doc@freebsd.org Received: from waterblue.imgsrc.co.jp (waterblue.imgsrc.co.jp [210.226.20.160]) by hub.freebsd.org (Postfix) with ESMTP id 2F5E137B503 for ; Mon, 2 Oct 2000 22:59:57 -0700 (PDT) Received: from waterblue.imgsrc.co.jp (localhost [127.0.0.1]) by waterblue.imgsrc.co.jp (8.11.0/8.11.0) with ESMTP id e935x4G89115 for ; Tue, 3 Oct 2000 14:59:04 +0900 (JST) Date: Tue, 03 Oct 2000 14:59:04 +0900 Message-ID: <7maecmea8n.wl@waterblue.imgsrc.co.jp> From: Jun Kuriyama To: Doc Team Subject: current www building problem User-Agent: Wanderlust/1.1.1 (Purple Rain) SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui) MULE XEmacs/21.1 (patch 12) (Channel Islands) (i386--freebsd) MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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 // IMG SRC, Inc. // FreeBSD Project To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message