ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Download File | Root Listing
root/midnightbsd-cvs/doc/Makefile
Revision: 1.2
Committed: Mon Jun 2 01:28:48 2008 UTC (15 years, 10 months ago) by laffer1
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -17 lines
Log Message:
Remove the non english language versions as we don't have time to deal with this now.  If someone steps up to translate, great.

File Contents

# Content
1 # $MidnightBSD$
2 #
3 # The user can override the default list of languages to build and install
4 # with the DOC_LANG variable.
5 #
6 .if defined(DOC_LANG) && !empty(DOC_LANG)
7 SUBDIR = ${DOC_LANG}
8 .else
9 SUBDIR = en_US.ISO8859-1
10 .endif
11
12 DOC_PREFIX?= ${.CURDIR}
13
14 SUP?= ${PREFIX}/bin/cvsup
15 SUPFLAGS?= -g -L 2 -P -
16 .if defined(SUPHOST)
17 SUPFLAGS+= -h ${SUPHOST}
18 .endif
19
20 CVS?= /usr/bin/cvs
21 CVSFLAGS?= -R -q
22
23 update:
24 .if defined(SUP_UPDATE)
25 .if !defined(DOCSUPFILE)
26 @${ECHO_CMD} "Error: Please define DOCSUPFILE before doing make update."
27 @exit 1
28 .endif
29 @${ECHODIR} "--------------------------------------------------------------"
30 @${ECHODIR} ">>> Running ${SUP}"
31 @${ECHODIR} "--------------------------------------------------------------"
32 @${SUP} ${SUPFLAGS} ${DOCSUPFILE}
33 .elif defined(CVS_UPDATE)
34 @${ECHODIR} "--------------------------------------------------------------"
35 @${ECHODIR} ">>> Updating ${.CURDIR} from cvs repository" ${CVSROOT}
36 @${ECHODIR} "--------------------------------------------------------------"
37 cd ${.CURDIR}; ${CVS} ${CVSFLAGS} update -P -d
38 .else
39 @${ECHO_CMD} "Error: Please define either SUP_UPDATE or CVS_UPDATE first."
40 .endif
41
42 .include "${DOC_PREFIX}/share/mk/doc.project.mk"