freebsd-dev/release/doc/Makefile
Dima Dorfman 703471ec7f Build system:
o Define a RELN_ROOT variable which points to the root of the relnotes
  tree (i.e., src/release/doc).
o By default, define DOC_PREFIX in terms of RELN_ROOT; this gives a
  bigger chance of finding the doc/ tree without help in the form of
  setting DOC_PREFIX on the command line.
o Respect DOCDIR; `make install` works now.

Approved by:	bmah
2001-04-29 21:05:12 +00:00

38 lines
1.1 KiB
Makefile

# $FreeBSD$
#
# The user can override the default list of languages to build and install
# with the DOC_LANG variable.
#
.if defined(DOC_LANG) && !empty(DOC_LANG)
SUBDIR = ${DOC_LANG}
.else
SUBDIR = en_US.ISO_8859-1
.endif
RELN_ROOT?= ${.CURDIR}
.if defined(SUPHOST)
SUPFLAGS+= -h ${SUPHOST}
.endif
update:
.if defined(SUP_UPDATE)
.if !defined(DOCSUPFILE)
@echo "Error: Please define DOCSUPFILE before doing make update."
@exit 1
.endif
@echo "--------------------------------------------------------------"
@echo ">>> Running ${SUP}"
@echo "--------------------------------------------------------------"
@${SUP} ${SUPFLAGS} ${DOCSUPFILE}
.elif defined(CVS_UPDATE)
@echo "--------------------------------------------------------------"
@echo ">>> Updating ${.CURDIR} from cvs repository" ${CVSROOT}
@echo "--------------------------------------------------------------"
cd ${.CURDIR}; cvs -q update -P -d
.else
@echo "Error: Please define either SUP_UPDATE or CVS_UPDATE first."
.endif
.include "${RELN_ROOT}/share/mk/doc.relnotes.mk"
.include "${DOC_PREFIX}/share/mk/doc.subdir.mk"