doc/en/relnotes/Makefile
Dima Dorfman 816d0456a6 Explicitly set DOC_PREFIX in the child make invocation. This helps
fix the case where the release notes are not exactly three levels
below in "something/something-else/doc" (if that's not the case,
doc.relnotes.mk would be unable to find the right path to the doc/
tree).
2001-06-14 23:21:03 +00:00

30 lines
960 B
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.1 2001/05/25 05:08:03 dd Exp $
#
RELNOTES= CURRENT ${.CURDIR}/../../../src/release/doc
all install clean obj:
@set ${RELNOTES}; \
while :; do \
case $$# in \
0) break;; \
1) echo "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/ \
${.TARGET}); \
done;