freebsd-src/release/doc/Makefile
Bruce A. Mah 263d5eee66 Fix the order in which we build subdirectories in a "make all" from the
top-level release/doc directory.  We were building in share/sgml first,
which caused us to autogenerate hardware notes entities in the wrong
format (we want to build these via ${RELNOTES_LANG}/hardware/Makefile,
in order to get the HWNOTES_MI variable).

Approved by:	re (kensmith)
2007-08-17 14:16:59 +00:00

39 lines
1.1 KiB
Makefile

# $FreeBSD$
#
# The user can override the default language to build and install
# with the RELNOTES_LANG variable.
#
.if defined(RELNOTES_LANG) && !empty(RELNOTES_LANG)
SUBDIR+= ${RELNOTES_LANG}
.else
SUBDIR+= en_US.ISO8859-1
.endif
SUBDIR+= share/sgml
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"