diff --git a/en/events/Makefile b/en/events/Makefile index a81548d239..f20886af0a 100644 --- a/en/events/Makefile +++ b/en/events/Makefile @@ -1,47 +1,49 @@ -# $FreeBSD: www/en/events/Makefile,v 1.3 2003/09/22 07:44:39 murray Exp $ +# $FreeBSD: www/en/events/Makefile,v 1.4 2003/10/12 17:24:21 simon Exp $ .if exists(../Makefile.conf) .include "../Makefile.conf" .endif .if exists(../Makefile.inc) .include "../Makefile.inc" .endif SUBDIR= 2002 2003 DATA= events.css DATA= events.html CLEANFILES+= events.html curdate.xml +INDEXLINK= events.html + DATE?= /bin/date TR?= /usr/bin/tr XMLLINT?= /usr/local/bin/xmllint # Part of textproc/libxml2. events.html: events.xsl events.xml ../includes.xsl curdate.xml ${XSLTPROC} ${XSLTPROCOPTS} -o ${.TARGET} \ ${.CURDIR}/events.xsl ${.CURDIR}/events.xml .if !defined(NO_TIDY) -${TIDY} ${TIDYOPTS} ${.TARGET} .endif lint: ${XMLLINT} --valid -o /dev/null ${.CURDIR}/events.xml # XXX TODO: Handle this better, so curdate.xml isn't rebuild on install. curdate.xml! @${ECHO} "Generating ${.TARGET}" @${ECHO_CMD} '' > ${.TARGET} @${ECHO_CMD} '' >> ${.TARGET} @${ECHO_CMD} -n ' ' >> ${.TARGET} @${DATE} +%Y | ${TR} -d "\n" >> ${.TARGET} @${ECHO_CMD} '' >> ${.TARGET} @${ECHO_CMD} -n ' ' >> ${.TARGET} @${DATE} +%m | ${TR} -d "\n" >> ${.TARGET} @${ECHO_CMD} '' >> ${.TARGET} @${ECHO_CMD} -n ' ' >> ${.TARGET} @${DATE} +%d | ${TR} -d "\n" >> ${.TARGET} @${ECHO_CMD} '' >> ${.TARGET} @${ECHO_CMD} '' >> ${.TARGET} .include "${WEB_PREFIX}/share/mk/web.site.mk"