doc/en/relnotes/Makefile
Simon L. B. Nielsen 3145eff28c Build release notes for FreeBSD 6, 7, and 8 instead of older releases.
webupdate script on www.FreeBSD.org has been updated to support this.
2008-10-05 10:17:00 +00:00

33 lines
1.1 KiB
Makefile

#
# Web site build hooks for the release notes. Also see the README file.
#
# The variable RELNOTES (I couldn't think of a better name) is a poor
# man's list. Its semantics are very similar to that of MLINKS (see
# bsd.man.mk). The first word is the directory under which that set
# of relnotes should appear on the web site. The second word is the
# path to that relnotes set.
#
# $FreeBSD: www/en/relnotes/Makefile,v 1.7 2005/07/15 15:42:09 hrs Exp $
#
RELNOTES?= CURRENT ${.CURDIR}/../../../relnotes/doc \
7-STABLE ${.CURDIR}/../../../relnotes7/doc \
6-STABLE ${.CURDIR}/../../../relnotes6/doc
all install clean obj:
@set ${RELNOTES}; \
while :; do \
case $$# in \
0) break;; \
1) ${ECHO_CMD} "bad \$$RELNOTES value"; false; break;; \
esac; \
webname=$$1; shift; realpath=$$1; shift; \
(unset DESTDIR || true; \
cd $$realpath && ${MAKE} \
FORMATS=html\ html-split \
DOCDIR=${DESTDIR}/data/${.CURDIR:T}/$$webname \
DOC_PREFIX=${.CURDIR}/../../../doc \
DIRPRFX=${.CURDIR:T}/$$webname/ \
NO_LANGCODE_IN_DESTDIR=true \
${.TARGET}); \
done;