# $Ringlet: c/misc/penv/doc/en_US.ISO8859-1/xml/changes/Makefile,v 1.1 2002/03/21 10:42:30 roam Exp $

.if exists(${.CURDIR}/Makefile.inc)
.include "${.CURDIR}/Makefile.inc"
.endif

HTML2TXT?=	lynx
HTML2TXTOPTS?=	-dump
HTML2TXTFLAGS?=	-nolist

INDEXLINK= changes.html

DATA=		changes.html changes.txt
CLEANFILES+=	changes.html changes.txt

changes.html: changes.xsl changes.xml includes.xsl
	${XSLTPROC} ${XSLTPROCOPTS} -o ${.TARGET} \
		${.CURDIR}/changes.xsl ${.CURDIR}/changes.xml
.if !defined(NO_TIDY)
	-${TIDY} ${TIDYOPTS} ${.TARGET}
.endif

changes.txt:	changes.html
	${HTML2TXT} ${HTML2TXTOPTS} ${HTML2TXTFLAGS} changes.html > changes.txt

.include "${WEB_PREFIX}/share/mk/web.site.mk"
