head	1.9;
access;
symbols
	HRS_XML_CLEANUP:1.9
	HRS_XML_CLEANUP_PRE:1.9
	EMILYBOYD_REDESIGN:1.8
	PRE_REDESIGN:1.8
	XML_XSL_XP:1.7.0.2
	XML_XSL_XP_BP:1.7;
locks; strict;
comment	@# @;


1.9
date	2006.07.11.13.11.56;	author hrs;	state Exp;
branches;
next	1.8;

1.8
date	2001.10.29.10.14.31;	author murray;	state Exp;
branches;
next	1.7;

1.7
date	2001.08.23.08.12.26;	author murray;	state Exp;
branches;
next	1.6;

1.6
date	2001.06.11.02.38.59;	author ache;	state Exp;
branches;
next	1.5;

1.5
date	2001.04.27.12.26.17;	author phantom;	state Exp;
branches;
next	1.4;

1.4
date	2001.04.25.18.43.49;	author wosch;	state Exp;
branches;
next	1.3;

1.3
date	2001.04.23.07.26.29;	author nik;	state Exp;
branches;
next	1.2;

1.2
date	2001.04.17.12.18.20;	author nik;	state Exp;
branches;
next	1.1;

1.1
date	2001.04.17.09.05.43;	author nik;	state Exp;
branches;
next	;


desc
@@


1.9
log
@- Include ../Makefile.inc.
- Use ${DOC_PREFIX}, ${WEB_PREFIX}, and ${LANGCODE} instead of relative
  pathnames based on ${.CURDIR}.
@
text
@#
# $FreeBSD: www/en/doc/Makefile,v 1.8 2001/10/29 10:14:31 murray Exp $
#
# 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-pgpkeyring

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
all-pgpkeyring:
	@@unset DESTDIR || true; \
	 cd ${DOC_PREFIX}/${LANGCODE}/books/handbook; \
		${MAKE} \
			pgpkeyring > ${.OBJDIR}/pgpkeyring.txt

install clean:
	@@unset DESTDIR || true; \
	 cd ${DOC_PREFIX}/${LANGCODE}; \
		${MAKE} FORMATS="html-split html" DOCDIR=${DESTDIR}/data/doc \
			INSTALL_COMPRESSED= ${.TARGET}
.if make(install)
	@@unset DESTDIR || true; \
	 cd ${DOC_PREFIX}/${LANGCODE}/books/handbook; \
		${MAKE} \
			pgpkeyring > ${DESTDIR}/data/doc/pgpkeyring.txt
.endif
.if make(clean)
	${RM} -rf en* handbook faq pgpkeyring.txt
.endif

.include "${WEB_PREFIX}/share/mk/web.site.mk"

obj: _OBJUSE

_OBJUSE: .USE
	@@unset DESTDIR || true; \
	 cd ${DOC_PREFIX}/${LANGCODE}; \
		${MAKE} ${.TARGET}
@


1.8
log
@* Make build/install of www /usr/obj prefix clean.
* Use make variables instead of hard coding commands, paths, and
  options.
* Wrap some long lines.
* Replace shell loops with make for loops, etc.

PR:		docs/31132
Submitted by:	Cyrille Lefevre <clefevre@@citeweb.net>
@
text
@d2 1
a2 1
# $FreeBSD: www/en/doc/Makefile,v 1.7 2001/08/23 08:12:26 murray Exp $i
d12 7
d23 1
a23 1
	 cd ${.CURDIR}/../../../doc/en_US.ISO8859-1; \
d28 1
a28 1
	 cd ${.CURDIR}/../../../doc/en_US.ISO8859-1; \
d33 1
a33 1
	 cd ${.CURDIR}/../../../doc/en_US.ISO8859-1/books/handbook; \
d39 1
a39 1
	 cd ${.CURDIR}/../../../doc/en_US.ISO8859-1; \
d44 1
a44 1
	 cd ${.CURDIR}/../../../doc/en_US.ISO8859-1/books/handbook; \
d52 1
a52 1
.include "${.CURDIR}/../../share/mk/web.site.mk"
d58 1
a58 1
	 cd ${.CURDIR}/../../../doc/en_US.ISO8859-1; \
@


1.7
log
@Create pgpkeyring.txt as part of the web build.
@
text
@d2 1
a2 1
# $FreeBSD: www/en/doc/Makefile,v 1.6 2001/06/11 02:38:59 ache Exp $i
d12 17
a28 4
all:
	(unset DESTDIR || true; cd ${.CURDIR}/../../../doc/en_US.ISO8859-1 && ${MAKE} FORMATS=html-split\ html all)
	(unset DESTDIR || true; cd ${.CURDIR}/../../../doc/en_US.ISO8859-1 && ${MAKE} FORMATS=html-split\ html DOCDIR=${.CURDIR} install)
	(unset DESTDIR || true; cd ${.CURDIR}/../../../doc/en_US.ISO8859-1/books/handbook && ${MAKE} pgpkeyring > ${.CURDIR}/pgpkeyring.txt)
d31 4
a34 1
	(unset DESTDIR || true; cd ${.CURDIR}/../../../doc/en_US.ISO8859-1 && ${MAKE} FORMATS=html-split\ html DOCDIR=${DESTDIR}/data/doc ${.TARGET})
d36 4
a39 1
	(unset DESTDIR || true; cd ${.CURDIR}/../../../doc/en_US.ISO8859-1/books/handbook && ${MAKE} pgpkeyring > ${DESTDIR}/data/doc/pgpkeyring.txt)	
d42 1
a42 1
	rm -rf en* handbook faq pgpkeyring.txt
d45 3
a47 2
obj:
	cd ${.CURDIR}/../../../doc/en_US.ISO8859-1 && ${MAKE} ${.TARGET}
d49 4
a52 1
.include "${.CURDIR}/../../share/mk/web.site.mk"
@


1.6
log
@ISO_ -> ISO rename
@
text
@d2 1
a2 1
# $FreeBSD: www/en/doc/Makefile,v 1.5 2001/04/27 12:26:17 phantom Exp $i
d15 2
a16 1
	
d19 3
d23 1
a23 1
	rm -rf en* handbook faq
@


1.5
log
@Fix install target executed from ordinal user.

Fix by:		nik
@
text
@d2 1
a2 1
# $FreeBSD: www/en/doc/Makefile,v 1.4 2001/04/25 18:43:49 wosch Exp $i
d13 2
a14 2
	(unset DESTDIR || true; cd ${.CURDIR}/../../../doc/en_US.ISO_8859-1 && ${MAKE} FORMATS=html-split\ html all)
	(unset DESTDIR || true; cd ${.CURDIR}/../../../doc/en_US.ISO_8859-1 && ${MAKE} FORMATS=html-split\ html DOCDIR=${.CURDIR} install)
d17 1
a17 1
	(unset DESTDIR || true; cd ${.CURDIR}/../../../doc/en_US.ISO_8859-1 && ${MAKE} FORMATS=html-split\ html DOCDIR=${DESTDIR}/data/doc ${.TARGET})
d23 1
a23 1
	cd ${.CURDIR}/../../../doc/en_US.ISO_8859-1 && ${MAKE} ${.TARGET}
@


1.4
log
@Add forgotten obj target.
@
text
@d2 1
a2 1
# $FreeBSD: www/en/doc/Makefile,v 1.3 2001/04/23 07:26:29 nik Exp $i
d24 2
@


1.3
log
@Build the 'html' format, as well as the 'html-split' format.
@
text
@d2 1
a2 1
# $FreeBSD: www/en/doc/Makefile,v 1.2 2001/04/17 12:18:20 nik Exp $i
d21 3
@


1.2
log
@An alternative symlink method -- symlink to the directories, rather than
the directory contents.  The previous mechanism didn't work in the presence
of CVS/ directories (which didn't show up in my testing).
@
text
@d2 1
a2 1
# $FreeBSD: www/en/doc/Makefile,v 1.1 2001/04/17 09:05:43 nik Exp $i
d13 2
a14 2
	(unset DESTDIR || true; cd ${.CURDIR}/../../../doc/en_US.ISO_8859-1 && ${MAKE} FORMATS=html-split all)
	(unset DESTDIR || true; cd ${.CURDIR}/../../../doc/en_US.ISO_8859-1 && ${MAKE} FORMATS=html-split DOCDIR=${.CURDIR} install)
d17 1
a17 1
	(unset DESTDIR || true; cd ${.CURDIR}/../../../doc/en_US.ISO_8859-1 && ${MAKE} FORMATS=html-split DOCDIR=${DESTDIR}/data/doc ${.TARGET})
@


1.1
log
@Install all the documentation in to a single root, $WEBROOT/doc, with the
same naming scheme as that used by the doc/ repo.

Update docs.sgml to point to the documentation in this canonical location.

Update the FAQ/ and handbook/ directories to use symlinks to point to
the real documentation under doc/en_US.ISO_8859-1/.  This means that local
testing of the site (and mirrors) will still work as expected using the
legacy URLs.  Mirrors that expect to see a lot of traffic are advised to
alter their web server configuration so that $WEBROOT/FAQ and $WEBROOT/handbook
are redirected to $WEBROOT/doc/en_US.ISO_8859-1/books/{faq,handbook},
instead of relying on the symlinks.

Discussed on:	doc, www
@
text
@d2 1
a2 1
# $FreeBSD: www/en/docs/Makefile,v 1.3 2001/02/24 18:04:10 nik Exp $i
d12 5
a16 1
all install clean:
d18 3
@

