2001-10-29 10:21:53 +01:00
|
|
|
# $FreeBSD$
|
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
|
2002-04-06 20:30:34 +02:00
|
|
|
SUBDIR+= el_GR.ISO8859-7
|
2001-06-11 03:20:40 +02:00
|
|
|
SUBDIR+= es_ES.ISO8859-1
|
|
|
|
SUBDIR+= fr_FR.ISO8859-1
|
2002-01-09 12:20:45 +01:00
|
|
|
SUBDIR+= it_IT.ISO8859-15
|
1999-08-17 00:09:20 +02:00
|
|
|
SUBDIR+= ja_JP.eucJP
|
2002-09-26 20:20:38 +02:00
|
|
|
SUBDIR+= pl_PL.ISO8859-2
|
2002-10-01 05:15:12 +02:00
|
|
|
SUBDIR+= pt_BR.ISO8859-1
|
1999-08-19 22:31:25 +02:00
|
|
|
SUBDIR+= ru_RU.KOI8-R
|
2002-02-08 14:57:27 +01:00
|
|
|
SUBDIR+= sr_YU.ISO8859-2
|
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
|
|
|
|
2001-10-29 10:21:53 +01:00
|
|
|
SUP?= ${PREFIX}/bin/cvsup
|
|
|
|
SUPFLAGS?= -g -L 2 -P -
|
2000-09-21 22:48:16 +02:00
|
|
|
.if defined(SUPHOST)
|
|
|
|
SUPFLAGS+= -h ${SUPHOST}
|
|
|
|
.endif
|
2001-10-29 10:21:53 +01:00
|
|
|
|
|
|
|
CVS?= /usr/bin/cvs
|
2003-03-06 16:06:17 +01:00
|
|
|
CVSFLAGS?= -R -q
|
2001-10-29 10:21:53 +01:00
|
|
|
|
1999-12-16 03:22:16 +01:00
|
|
|
update:
|
|
|
|
.if defined(SUP_UPDATE)
|
|
|
|
.if !defined(DOCSUPFILE)
|
2001-10-29 10:21:53 +01:00
|
|
|
@${ECHO_CMD} "Error: Please define DOCSUPFILE before doing make update."
|
1999-12-16 03:22:16 +01:00
|
|
|
@exit 1
|
|
|
|
.endif
|
2001-10-29 10:21:53 +01:00
|
|
|
@${ECHODIR} "--------------------------------------------------------------"
|
|
|
|
@${ECHODIR} ">>> Running ${SUP}"
|
|
|
|
@${ECHODIR} "--------------------------------------------------------------"
|
1999-12-16 03:22:16 +01:00
|
|
|
@${SUP} ${SUPFLAGS} ${DOCSUPFILE}
|
|
|
|
.elif defined(CVS_UPDATE)
|
2001-10-29 10:21:53 +01:00
|
|
|
@${ECHODIR} "--------------------------------------------------------------"
|
|
|
|
@${ECHODIR} ">>> Updating ${.CURDIR} from cvs repository" ${CVSROOT}
|
|
|
|
@${ECHODIR} "--------------------------------------------------------------"
|
|
|
|
cd ${.CURDIR}; ${CVS} ${CVSFLAGS} update -P -d
|
1999-12-16 03:22:16 +01:00
|
|
|
.else
|
2001-10-29 10:21:53 +01:00
|
|
|
@${ECHO_CMD} "Error: Please define either SUP_UPDATE or CVS_UPDATE first."
|
1999-12-16 03:22:16 +01:00
|
|
|
.endif
|
|
|
|
|
2001-10-29 10:21:53 +01:00
|
|
|
.include "${DOC_PREFIX}/share/mk/doc.project.mk"
|