* 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>
52 lines
1.5 KiB
Makefile
52 lines
1.5 KiB
Makefile
#
|
|
# $FreeBSD: www/en/doc/Makefile,v 1.7 2001/08/23 08:12:26 murray Exp $i
|
|
#
|
|
# 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-pgpkeyring
|
|
|
|
all-all:
|
|
@unset DESTDIR || true; \
|
|
cd ${.CURDIR}/../../../doc/en_US.ISO8859-1; \
|
|
${MAKE} FORMATS="html-split html" \
|
|
INSTALL_COMPRESSED= all
|
|
all-install:
|
|
@unset DESTDIR || true; \
|
|
cd ${.CURDIR}/../../../doc/en_US.ISO8859-1; \
|
|
${MAKE} FORMATS="html-split html" DOCDIR=${.OBJDIR} \
|
|
INSTALL_COMPRESSED= install
|
|
all-pgpkeyring:
|
|
@unset DESTDIR || true; \
|
|
cd ${.CURDIR}/../../../doc/en_US.ISO8859-1/books/handbook; \
|
|
${MAKE} \
|
|
pgpkeyring > ${.OBJDIR}/pgpkeyring.txt
|
|
|
|
install clean:
|
|
@unset DESTDIR || true; \
|
|
cd ${.CURDIR}/../../../doc/en_US.ISO8859-1; \
|
|
${MAKE} FORMATS="html-split html" DOCDIR=${DESTDIR}/data/doc \
|
|
INSTALL_COMPRESSED= ${.TARGET}
|
|
.if make(install)
|
|
@unset DESTDIR || true; \
|
|
cd ${.CURDIR}/../../../doc/en_US.ISO8859-1/books/handbook; \
|
|
${MAKE} \
|
|
pgpkeyring > ${DESTDIR}/data/doc/pgpkeyring.txt
|
|
.endif
|
|
.if make(clean)
|
|
${RM} -rf en* handbook faq pgpkeyring.txt
|
|
.endif
|
|
|
|
.include "${.CURDIR}/../../share/mk/web.site.mk"
|
|
|
|
obj: _OBJUSE
|
|
|
|
_OBJUSE: .USE
|
|
@unset DESTDIR || true; \
|
|
cd ${.CURDIR}/../../../doc/en_US.ISO8859-1; \
|
|
${MAKE} ${.TARGET}
|