From 8ae0ce213c1b5024a1655b06a7cd302b279de5d7 Mon Sep 17 00:00:00 2001
From: Hiroki Sato <hrs@FreeBSD.org>
Date: Sat, 19 Aug 2006 21:28:19 +0000
Subject: [PATCH] Catch up with the English version.

---
 nl/doc/Makefile    | 19 +++++++++++++------
 pt_BR/doc/Makefile | 25 +++++++++++++++----------
 2 files changed, 28 insertions(+), 16 deletions(-)

diff --git a/nl/doc/Makefile b/nl/doc/Makefile
index 9bdb4159fe..824c924fb9 100644
--- a/nl/doc/Makefile
+++ b/nl/doc/Makefile
@@ -1,5 +1,6 @@
 #
-# $FreeBSD$
+# $FreeBSD: www/nl/doc/Makefile,v 1.1 2004/09/27 12:00:03 josef Exp $
+# Original revision: 1.8
 #
 # Build the FreeBSD documentation *outside* of the www tree, and install it
 # in to the right place as necessary.
@@ -8,33 +9,39 @@
 # 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 ${.CURDIR}/../../../doc/nl_NL.ISO8859-1; \
+	 cd ${DOC_PREFIX}/${LANGCODE}; \
 		${MAKE} FORMATS="html-split html" \
 			INSTALL_COMPRESSED= all
 all-install:
 	@unset DESTDIR || true; \
-	 cd ${.CURDIR}/../../../doc/nl_NL.ISO8859-1; \
+	 cd ${DOC_PREFIX}/${LANGCODE}; \
 		${MAKE} FORMATS="html-split html" DOCDIR=${.OBJDIR} \
 			INSTALL_COMPRESSED= install
 install clean:
 	@unset DESTDIR || true; \
-	 cd ${.CURDIR}/../../../doc/nl_NL.ISO8859-1; \
+	 cd ${DOC_PREFIX}/${LANGCODE}; \
 		${MAKE} FORMATS="html-split html" DOCDIR=${DESTDIR}/data/doc \
 			INSTALL_COMPRESSED= ${.TARGET}
 .if make(clean)
 	${RM} -rf nl*
 .endif
 
-.include "${.CURDIR}/../../share/mk/web.site.mk"
+.include "${WEB_PREFIX}/share/mk/web.site.mk"
 
 obj: _OBJUSE
 
 _OBJUSE: .USE
 	@unset DESTDIR || true; \
-	 cd ${.CURDIR}/../../../doc/nl_NL.ISO8859-1; \
+	 cd ${DOC_PREFIX}/${LANGCODE}; \
 		${MAKE} ${.TARGET}
diff --git a/pt_BR/doc/Makefile b/pt_BR/doc/Makefile
index 398281193a..63ccf5733e 100644
--- a/pt_BR/doc/Makefile
+++ b/pt_BR/doc/Makefile
@@ -3,7 +3,7 @@
 #
 # Original version: 1.8
 #
-# $FreeBSD$
+# $FreeBSD: www/pt_BR/doc/Makefile,v 1.1 2004/01/05 03:05:24 lioux Exp $
 #
 # Build the FreeBSD documentation *outside* of the www tree, and install it
 # in to the right place as necessary.
@@ -12,34 +12,39 @@
 # 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 ${.CURDIR}/../../../doc/pt_BR.ISO8859-1; \
+	@unset DESTDIR || true; \
+	 cd ${DOC_PREFIX}/${LANGCODE}; \
 		${MAKE} FORMATS="html-split html" \
 			INSTALL_COMPRESSED= all
 all-install:
-	unset DESTDIR || true; \
-	 cd ${.CURDIR}/../../../doc/pt_BR.ISO8859-1; \
+	@unset DESTDIR || true; \
+	 cd ${DOC_PREFIX}/${LANGCODE}; \
 		${MAKE} FORMATS="html-split html" DOCDIR=${.OBJDIR} \
 			INSTALL_COMPRESSED= install
-
 install clean:
-	unset DESTDIR || true; \
-	 cd ${.CURDIR}/../../../doc/pt_BR.ISO8859-1; \
+	@unset DESTDIR || true; \
+	 cd ${DOC_PREFIX}/${LANGCODE}; \
 		${MAKE} FORMATS="html-split html" DOCDIR=${DESTDIR}/data/doc \
 			INSTALL_COMPRESSED= ${.TARGET}
 .if make(clean)
 	${RM} -rf pt* faq
 .endif
 
-.include "${.CURDIR}/../../share/mk/web.site.mk"
+.include "${WEB_PREFIX}/share/mk/web.site.mk"
 
 obj: _OBJUSE
 
 _OBJUSE: .USE
 	@unset DESTDIR || true; \
-	 cd ${.CURDIR}/../../../doc/pt_BR.ISO8859-1; \
+	 cd ${DOC_PREFIX}/${LANGCODE}; \
 		${MAKE} ${.TARGET}