Add www/zh_CN and www/zh_TW directories (currently they are only for
building the document sets in doc/zh_CN.GB2312 and doc/zh_TW.Big5).
This commit is contained in:
parent
49e368cb82
commit
02925c37f4
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=28253
6 changed files with 138 additions and 0 deletions
17
zh_CN/Makefile
Normal file
17
zh_CN/Makefile
Normal file
|
@ -0,0 +1,17 @@
|
|||
# $FreeBSD$
|
||||
# Original revision:
|
||||
|
||||
.if exists(../Makefile.conf)
|
||||
.include "../Makefile.conf"
|
||||
.endif
|
||||
.if exists(../Makefile.inc)
|
||||
.include "../Makefile.inc"
|
||||
.endif
|
||||
|
||||
.if !defined(WEB_ONLY) || empty(WEB_ONLY)
|
||||
SUBDIR+= doc
|
||||
.endif
|
||||
|
||||
WEBBASE?= /data/zh_CN
|
||||
|
||||
.include "${WEB_PREFIX}/share/mk/web.site.mk"
|
5
zh_CN/Makefile.inc
Normal file
5
zh_CN/Makefile.inc
Normal file
|
@ -0,0 +1,5 @@
|
|||
# $FreeBSD$
|
||||
# Original revision: 1.8
|
||||
|
||||
WEBBASE?= /data/zh_CN
|
||||
WEB_PREFIX?= ${.CURDIR}/../..
|
47
zh_CN/doc/Makefile
Normal file
47
zh_CN/doc/Makefile
Normal file
|
@ -0,0 +1,47 @@
|
|||
#
|
||||
# $FreeBSD$
|
||||
# Original revision: 1.8
|
||||
#
|
||||
# Build the FreeBSD documentation *outside* of the www tree, and install it
|
||||
# in to the right place as necessary.
|
||||
#
|
||||
# This assumes that you have the www/ and doc/ trees checked out beside
|
||||
# one another -- this was always the case anyway, so there are no extra
|
||||
# requirements here.
|
||||
#
|
||||
.if exists(../Makefile.conf)
|
||||
.include "../Makefile.conf"
|
||||
.endif
|
||||
.if exists(../Makefile.inc)
|
||||
.include "../Makefile.inc"
|
||||
.endif
|
||||
|
||||
all: all-all all-install
|
||||
|
||||
all-all:
|
||||
@unset DESTDIR || true; \
|
||||
cd ${DOC_PREFIX}/${LANGCODE}; \
|
||||
${MAKE} FORMATS="html-split html" \
|
||||
INSTALL_COMPRESSED= all
|
||||
all-install:
|
||||
@unset DESTDIR || true; \
|
||||
cd ${DOC_PREFIX}/${LANGCODE}; \
|
||||
${MAKE} FORMATS="html-split html" DOCDIR=${.OBJDIR} \
|
||||
INSTALL_COMPRESSED= install
|
||||
install clean:
|
||||
@unset DESTDIR || true; \
|
||||
cd ${DOC_PREFIX}/${LANGCODE}; \
|
||||
${MAKE} FORMATS="html-split html" DOCDIR=${DESTDIR}/data/doc \
|
||||
INSTALL_COMPRESSED= ${.TARGET}
|
||||
.if make(clean)
|
||||
${RM} -rf zh_CN*
|
||||
.endif
|
||||
|
||||
.include "${WEB_PREFIX}/share/mk/web.site.mk"
|
||||
|
||||
obj: _OBJUSE
|
||||
|
||||
_OBJUSE: .USE
|
||||
@unset DESTDIR || true; \
|
||||
cd ${DOC_PREFIX}/${LANGCODE}; \
|
||||
${MAKE} ${.TARGET}
|
17
zh_TW/Makefile
Normal file
17
zh_TW/Makefile
Normal file
|
@ -0,0 +1,17 @@
|
|||
# $FreeBSD$
|
||||
# Original revision:
|
||||
|
||||
.if exists(../Makefile.conf)
|
||||
.include "../Makefile.conf"
|
||||
.endif
|
||||
.if exists(../Makefile.inc)
|
||||
.include "../Makefile.inc"
|
||||
.endif
|
||||
|
||||
.if !defined(WEB_ONLY) || empty(WEB_ONLY)
|
||||
SUBDIR+= doc
|
||||
.endif
|
||||
|
||||
WEBBASE?= /data/zh_TW
|
||||
|
||||
.include "${WEB_PREFIX}/share/mk/web.site.mk"
|
5
zh_TW/Makefile.inc
Normal file
5
zh_TW/Makefile.inc
Normal file
|
@ -0,0 +1,5 @@
|
|||
# $FreeBSD$
|
||||
# Original revision: 1.8
|
||||
|
||||
WEBBASE?= /data/zh_TW
|
||||
WEB_PREFIX?= ${.CURDIR}/../..
|
47
zh_TW/doc/Makefile
Normal file
47
zh_TW/doc/Makefile
Normal file
|
@ -0,0 +1,47 @@
|
|||
#
|
||||
# $FreeBSD$
|
||||
# Original revision: 1.8
|
||||
#
|
||||
# Build the FreeBSD documentation *outside* of the www tree, and install it
|
||||
# in to the right place as necessary.
|
||||
#
|
||||
# This assumes that you have the www/ and doc/ trees checked out beside
|
||||
# one another -- this was always the case anyway, so there are no extra
|
||||
# requirements here.
|
||||
#
|
||||
.if exists(../Makefile.conf)
|
||||
.include "../Makefile.conf"
|
||||
.endif
|
||||
.if exists(../Makefile.inc)
|
||||
.include "../Makefile.inc"
|
||||
.endif
|
||||
|
||||
all: all-all all-install
|
||||
|
||||
all-all:
|
||||
@unset DESTDIR || true; \
|
||||
cd ${DOC_PREFIX}/${LANGCODE}; \
|
||||
${MAKE} FORMATS="html-split html" \
|
||||
INSTALL_COMPRESSED= all
|
||||
all-install:
|
||||
@unset DESTDIR || true; \
|
||||
cd ${DOC_PREFIX}/${LANGCODE}; \
|
||||
${MAKE} FORMATS="html-split html" DOCDIR=${.OBJDIR} \
|
||||
INSTALL_COMPRESSED= install
|
||||
install clean:
|
||||
@unset DESTDIR || true; \
|
||||
cd ${DOC_PREFIX}/${LANGCODE}; \
|
||||
${MAKE} FORMATS="html-split html" DOCDIR=${DESTDIR}/data/doc \
|
||||
INSTALL_COMPRESSED= ${.TARGET}
|
||||
.if make(clean)
|
||||
${RM} -rf zh_TW*
|
||||
.endif
|
||||
|
||||
.include "${WEB_PREFIX}/share/mk/web.site.mk"
|
||||
|
||||
obj: _OBJUSE
|
||||
|
||||
_OBJUSE: .USE
|
||||
@unset DESTDIR || true; \
|
||||
cd ${DOC_PREFIX}/${LANGCODE}; \
|
||||
${MAKE} ${.TARGET}
|
Loading…
Reference in a new issue