]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - release/doc/Makefile
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / release / doc / Makefile
1 # $FreeBSD$
2 #
3 # The user can override the default language to build and install
4 # with the RELNOTES_LANG variable.
5
6 .if defined(RELNOTES_LANG) && !empty(RELNOTES_LANG)
7 SUBDIR+=        ${RELNOTES_LANG}
8 .else
9 SUBDIR+=        en_US.ISO8859-1
10 .endif
11 SUBDIR+=        share/xml
12
13 RELN_ROOT?= ${.CURDIR}
14
15 .if exists(/usr/local/bin/svn)
16 SVN?=           /usr/local/bin/svn
17 .elif exists(/usr/bin/svn)
18 SVN?=           /usr/bin/svn
19 .else
20 SVN?=           /usr/bin/svnlite
21 .endif
22
23 SVNFLAGS?=      -r HEAD
24
25 update:
26 .if !exists(${SVN})
27         @echo "--------------------------------------------------------------"
28         @echo ">>> Updating ${RELN_ROOT} requires ${SVN}."
29         @echo "--------------------------------------------------------------"
30         @exit 1
31 .endif
32         @echo "--------------------------------------------------------------"
33         @echo ">>> Updating ${.CURDIR}"
34         @echo "--------------------------------------------------------------"
35         @(cd ${.CURDIR} && ${SVN} update ${SVNFLAGS})
36
37 .include "${RELN_ROOT}/share/mk/doc.relnotes.mk"
38 .include "${DOC_PREFIX}/share/mk/doc.subdir.mk"