From 1f980b6c9c11a118609839852a54b35893060eee Mon Sep 17 00:00:00 2001 From: Jesus Rodriguez Cuesta Date: Mon, 25 Nov 2002 12:23:00 +0000 Subject: [PATCH] Build FAQ and handbook on the right path. --- es/FAQ/Makefile | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/es/FAQ/Makefile b/es/FAQ/Makefile index 34142cf3dc..02a7f13964 100644 --- a/es/FAQ/Makefile +++ b/es/FAQ/Makefile @@ -1,11 +1,26 @@ # -# $FreeBSD: www/es/FAQ/Makefile,v 1.3 1999/09/15 20:37:11 wosch Exp $ +# $FreeBSD: www/es/FAQ/Makefile,v 1.4 2001/06/11 02:39:05 ache Exp $ # # Build the FreeBSD FAQ *outside* of the www tree, and install it # in to the right place as necessary. -all install clean: - (cd ../../../doc/es_ES.ISO8859-1/books/faq; ${MAKE} 'FORMATS=html-split html' DESTDIR=${DESTDIR}/data/es/FAQ ${.TARGET}) -.if make(install) - (cd ${DESTDIR}/data/es/FAQ; ln -sf index.html FAQ.html) +.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/faq/* . + +# At install time the www/en/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/faq/* ${DOCINSTALLDIR} + +.include "${WEB_PREFIX}/share/mk/web.site.mk"