aboutsummaryrefslogtreecommitdiff
path: root/en/handbook
diff options
context:
space:
mode:
authorNik Clayton <nik@FreeBSD.org>2001-04-17 09:05:43 +0000
committerNik Clayton <nik@FreeBSD.org>2001-04-17 09:05:43 +0000
commiteab69689b8f8dadcc7848bb5b14a68a897211535 (patch)
tree6949c53c59aafced7bd18e905945dd1bb41bcbc1 /en/handbook
parent5a16245baf38bfb7cc2391172aee2c42f62429ab (diff)
Notes
Diffstat (limited to 'en/handbook')
-rw-r--r--en/handbook/Makefile36
1 files changed, 21 insertions, 15 deletions
diff --git a/en/handbook/Makefile b/en/handbook/Makefile
index 4ba2e70d7c..4a99aa7be5 100644
--- a/en/handbook/Makefile
+++ b/en/handbook/Makefile
@@ -1,18 +1,24 @@
#
-# $FreeBSD: www/en/handbook/Makefile,v 1.4 1999/09/06 07:02:45 peter Exp $
-#
-# Build the FreeBSD Handbook *outside* of the www tree, and install it
-# in to the right place as necessary.
-#
-# The Handbook is no longer completely self contained in
-# doc/en_US.ISO_8859-1/books/handbook, (it requires support files outside of
-# this directory) and it is much simpler to build it outside the web tree
-# than it is to make a nest of symlinks to try and build it inside the tree.
-#
-# 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.
+# $FreeBSD: www/en/FAQ/Makefile,v 1.4 1999/09/15 20:37:03 wosch Exp $
#
-all install clean:
- (cd ../../../doc/en_US.ISO_8859-1/books/handbook && ${MAKE} FORMATS=html-split DESTDIR=${DESTDIR}/data/handbook ${.TARGET})
+.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 ${.CURDIR}/../../../doc/en_US.ISO_8859-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/en_US.ISO_8859-1/books/handbook/* ${DOCINSTALLDIR})
+
+.include "${WEB_PREFIX}/share/mk/web.site.mk"
+