doc/Makefile
Murray Stokely f92319a1b1 Make build/install /usr/obj prefix clean.
Also fix several minor bugs here, such as leftover files not being
deleted after 'make clean'.

PR:		docs/31131
Submitted by:	Cyrille Lefevre <clefevre@citeweb.net>
2001-10-29 09:21:53 +00:00

48 lines
1.3 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.ISO8859-1
SUBDIR+= de_DE.ISO8859-1
SUBDIR+= es_ES.ISO8859-1
SUBDIR+= fr_FR.ISO8859-1
SUBDIR+= ja_JP.eucJP
SUBDIR+= ru_RU.KOI8-R
SUBDIR+= zh_TW.Big5
.endif
DOC_PREFIX?= ${.CURDIR}
SUP?= ${PREFIX}/bin/cvsup
SUPFLAGS?= -g -L 2 -P -
.if defined(SUPHOST)
SUPFLAGS+= -h ${SUPHOST}
.endif
CVS?= /usr/bin/cvs
CVSFLAGS?= -q
update:
.if defined(SUP_UPDATE)
.if !defined(DOCSUPFILE)
@${ECHO_CMD} "Error: Please define DOCSUPFILE before doing make update."
@exit 1
.endif
@${ECHODIR} "--------------------------------------------------------------"
@${ECHODIR} ">>> Running ${SUP}"
@${ECHODIR} "--------------------------------------------------------------"
@${SUP} ${SUPFLAGS} ${DOCSUPFILE}
.elif defined(CVS_UPDATE)
@${ECHODIR} "--------------------------------------------------------------"
@${ECHODIR} ">>> Updating ${.CURDIR} from cvs repository" ${CVSROOT}
@${ECHODIR} "--------------------------------------------------------------"
cd ${.CURDIR}; ${CVS} ${CVSFLAGS} update -P -d
.else
@${ECHO_CMD} "Error: Please define either SUP_UPDATE or CVS_UPDATE first."
.endif
.include "${DOC_PREFIX}/share/mk/doc.project.mk"