aboutsummaryrefslogtreecommitdiff
path: root/zh_TW
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2006-07-11 13:24:05 +0000
committerHiroki Sato <hrs@FreeBSD.org>2006-07-11 13:24:05 +0000
commit02925c37f4ab41e3e373ff63180e2323a2550a23 (patch)
treebd371f186acb2c09db7eaf2950c7f9c651546b0e /zh_TW
parent49e368cb82cb413cf144a26b28074c0d4899af4a (diff)
downloaddoc-02925c37f4ab41e3e373ff63180e2323a2550a23.tar.gz
doc-02925c37f4ab41e3e373ff63180e2323a2550a23.zip
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).
Notes
Notes: svn path=/www/; revision=28253
Diffstat (limited to 'zh_TW')
-rw-r--r--zh_TW/Makefile17
-rw-r--r--zh_TW/Makefile.inc5
-rw-r--r--zh_TW/doc/Makefile47
3 files changed, 69 insertions, 0 deletions
diff --git a/zh_TW/Makefile b/zh_TW/Makefile
new file mode 100644
index 0000000000..e375950101
--- /dev/null
+++ b/zh_TW/Makefile
@@ -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"
diff --git a/zh_TW/Makefile.inc b/zh_TW/Makefile.inc
new file mode 100644
index 0000000000..0275c8f2a0
--- /dev/null
+++ b/zh_TW/Makefile.inc
@@ -0,0 +1,5 @@
+# $FreeBSD$
+# Original revision: 1.8
+
+WEBBASE?= /data/zh_TW
+WEB_PREFIX?= ${.CURDIR}/../..
diff --git a/zh_TW/doc/Makefile b/zh_TW/doc/Makefile
new file mode 100644
index 0000000000..1a60757bb0
--- /dev/null
+++ b/zh_TW/doc/Makefile
@@ -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}