From 7179df32a06add7ec068903d66b57cdb9c71bb56 Mon Sep 17 00:00:00 2001 From: Gabor Kovesdan Date: Fri, 20 Apr 2007 20:01:29 +0000 Subject: [PATCH] - Add doc "meta directory" for building hu_HU.ISO8859-2 documents on the webserver Approved by: keramida (mentor) --- hu/Makefile | 8 ++++---- hu/doc/Makefile | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+), 4 deletions(-) create mode 100644 hu/doc/Makefile diff --git a/hu/Makefile b/hu/Makefile index f098ff297c..c5b7438535 100644 --- a/hu/Makefile +++ b/hu/Makefile @@ -1,4 +1,4 @@ -# $FreeBSD: www/hu/Makefile,v 1.2 2007/01/09 17:09:54 keramida Exp $ +# $FreeBSD: www/hu/Makefile,v 1.3 2007/03/26 15:22:53 gabor Exp $ ################################################### # The FreeBSD Hungarian Documentation Project # @@ -39,6 +39,9 @@ SUBDIR+= platforms SUBDIR+= search SUBDIR+= projects SUBDIR+= support +.if !defined(WEB_ONLY) || empty(WEB_ONLY) +SUBDIR+= doc +.endif WEBDIR?= data/hu @@ -51,6 +54,3 @@ DEPENDSET.index= transtable mirrors news press events \ advisories notices .include "${WEB_PREFIX}/share/mk/web.site.mk" - -# Workaround against the wrong auto-detection of this path -XML_MIRRORS:= ${XML_MIRRORS:S@hu*@.@} diff --git a/hu/doc/Makefile b/hu/doc/Makefile new file mode 100644 index 0000000000..2733e84dbb --- /dev/null +++ b/hu/doc/Makefile @@ -0,0 +1,46 @@ +# +# $FreeBSD$ +# +# 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 hu* +.endif + +.include "${WEB_PREFIX}/share/mk/web.site.mk" + +obj: _OBJUSE + +_OBJUSE: .USE + @unset DESTDIR || true; \ + cd ${DOC_PREFIX}/${LANGCODE}; \ + ${MAKE} ${.TARGET}