From 5948a4cf91c76cc0d94c74927f398d9b36519c8f Mon Sep 17 00:00:00 2001 From: Jesus Rodriguez Cuesta Date: Mon, 25 Nov 2002 12:27:39 +0000 Subject: [PATCH] Integrate building the spanish handbook with the spanish web. --- es/Makefile | 17 ++++------------- es/doc/Makefile | 40 ++++++++++++++++++++++++++++++++++++++++ es/handbook/Makefile | 25 +++++++++++++++++++++++++ 3 files changed, 69 insertions(+), 13 deletions(-) create mode 100644 es/doc/Makefile create mode 100644 es/handbook/Makefile diff --git a/es/Makefile b/es/Makefile index 1302402182..4b83ec50e3 100644 --- a/es/Makefile +++ b/es/Makefile @@ -1,4 +1,4 @@ -# $FreeBSD: www/es/Makefile,v 1.11 2001/06/30 20:31:48 jesusr Exp $ +# $FreeBSD: www/es/Makefile,v 1.12 2001/12/12 11:57:37 phantom Exp $ .if exists(Makefile.conf) .include "Makefile.conf" @@ -46,27 +46,18 @@ SUBDIR+= search SUBDIR+= projects SUBDIR+= releases #SUBDIR+= doc-es + .if !defined(WEB_ONLY) || empty(WEB_ONLY) SUBDIR+= ports +SUBDIR+= doc .endif # Non-SGML #SUBDIR+= gifs #SUBDIR+= cgi -# Non-English -#.if !defined(ENGLISH_ONLY) || empty(ENGLISH_ONLY) -#SUBDIR+= ja -#SUBDIR+= es -#.endif - -.if !defined(WEB_ONLY) || empty(WEB_ONLY) -# Extern -#SUBDIR+= tutorials - #DOCSUBDIR= FAQ handbook -DOCSUBDIR= FAQ -.endif + SGMLFLAGS+= -links -hdr ${.CURDIR}/doc.hdr -ftr ${.CURDIR}/doc.ftr WEBDIR= data/es diff --git a/es/doc/Makefile b/es/doc/Makefile new file mode 100644 index 0000000000..15f6a65ca7 --- /dev/null +++ b/es/doc/Makefile @@ -0,0 +1,40 @@ +# +# $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. +# + +all: all-all all-install + +all-all: + @unset DESTDIR || true; \ + cd ${.CURDIR}/../../../doc/es_ES.ISO8859-1; \ + ${MAKE} FORMATS="html-split html" \ + INSTALL_COMPRESSED= all +all-install: + @unset DESTDIR || true; \ + cd ${.CURDIR}/../../../doc/es_ES.ISO8859-1; \ + ${MAKE} FORMATS="html-split html" DOCDIR=${.OBJDIR} \ + INSTALL_COMPRESSED= install +install clean: + @unset DESTDIR || true; \ + cd ${.CURDIR}/../../../doc/es_ES.ISO8859-1; \ + ${MAKE} FORMATS="html-split html" DOCDIR=${DESTDIR}/data/doc \ + INSTALL_COMPRESSED= ${.TARGET} +.if make(clean) + ${RM} -rf es* +.endif + +.include "${.CURDIR}/../../share/mk/web.site.mk" + +obj: _OBJUSE + +_OBJUSE: .USE + @unset DESTDIR || true; \ + cd ${.CURDIR}/../../../doc/es_ES.ISO8859-1; \ + ${MAKE} ${.TARGET} diff --git a/es/handbook/Makefile b/es/handbook/Makefile new file mode 100644 index 0000000000..d417078f02 --- /dev/null +++ b/es/handbook/Makefile @@ -0,0 +1,25 @@ +# +# $FreeBSD$ +# + +.if exists(../Makefile.conf) +.include "../Makefile.conf" +.endif +.if exists(../Makefile.inc) +.include "../Makefile.inc" +.endif + +# At build time, we have to link to the doc/ directory at the same level +# as the www/ tree. +all: + ${LN} -fs ${.OBJDIR}/../../../doc/es_ES.ISO8859-1/books/handbook/* . + +# At install time the ../doc/ directory has been populated, so we can +# link in to there instead. +install: + [ -d ${DOCINSTALLDIR} ] || ${MKDIR} ${DOCINSTALLDIR} + cd ${DOCINSTALLDIR}; \ + ${LN} -fs ../doc/es_ES.ISO8859-1/books/handbook/* \ + ${DOCINSTALLDIR} + +.include "${WEB_PREFIX}/share/mk/web.site.mk"