2001-06-11 03:20:40 +02:00
|
|
|
# $FreeBSD: doc/Makefile,v 1.20 2000/09/21 20:48:16 ben Exp $
|
1999-08-26 21:40:04 +02:00
|
|
|
#
|
|
|
|
# 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
|
2001-06-11 03:20:40 +02:00
|
|
|
SUBDIR = en_US.ISO8859-1
|
|
|
|
SUBDIR+= de_DE.ISO8859-1
|
|
|
|
SUBDIR+= es_ES.ISO8859-1
|
|
|
|
SUBDIR+= fr_FR.ISO8859-1
|
1999-08-17 00:09:20 +02:00
|
|
|
SUBDIR+= ja_JP.eucJP
|
1999-08-19 22:31:25 +02:00
|
|
|
SUBDIR+= ru_RU.KOI8-R
|
1999-08-17 00:09:20 +02:00
|
|
|
SUBDIR+= zh_TW.Big5
|
1999-08-26 21:40:04 +02:00
|
|
|
.endif
|
1997-05-23 18:23:43 +02:00
|
|
|
|
1999-09-03 19:24:47 +02:00
|
|
|
DOC_PREFIX?= ${.CURDIR}
|
1999-12-16 03:22:16 +01:00
|
|
|
|
2000-09-21 22:48:16 +02:00
|
|
|
.if defined(SUPHOST)
|
|
|
|
SUPFLAGS+= -h ${SUPHOST}
|
|
|
|
.endif
|
1999-12-16 03:22:16 +01:00
|
|
|
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
|
|
|
|
|
1999-09-03 19:24:47 +02:00
|
|
|
.include "${DOC_PREFIX}/share/mk/doc.subdir.mk"
|