summaryrefslogtreecommitdiff
path: root/doc/guide
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2007-10-10 05:45:47 +0000
committerdmcmahill <dmcmahill>2007-10-10 05:45:47 +0000
commit13699e4b98e9850ef46debdde8168300518092ff (patch)
treed19e9cf4d59b0a74f0f0b90dcd901c00e27e507f /doc/guide
parent1bf740ca83d016548198d84c5895fb68745550e0 (diff)
downloadpkgsrc-13699e4b98e9850ef46debdde8168300518092ff.tar.gz
Work around some issues that older makes (like in netbsd-2) have with
being called recursively with MAKECONF=/dev/null. Now the guide can be built on netbsd-2
Diffstat (limited to 'doc/guide')
-rw-r--r--doc/guide/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/guide/Makefile b/doc/guide/Makefile
index 6a95173acde..55be6e4cd0c 100644
--- a/doc/guide/Makefile
+++ b/doc/guide/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.29 2007/07/02 19:00:01 tnn Exp $
+# $NetBSD: Makefile,v 1.30 2007/10/10 05:45:47 dmcmahill Exp $
#
DISTNAME= pkgsrc-guide-${PKGVERSION}
@@ -40,14 +40,21 @@ _GUIDE_OUTPUTS= ${OUTPUTS}
.include "Makefile.common"
+# this hack is needed because otherwise PKGMAKECONF ends up set
+# to /dev/null during the build. When make is then called recursively
+# with MAKECONF=/dev/null, some older versions fail.
+PKGMAKECONF?= ${WRKDIR}/mk.conf
+
# The source files are only symlinked into the WRKSRC, so that they can
# be easily modified, should the "lint" phase fail.
pre-extract:
${MKDIR} ${WRKSRC}
${LN} -s ${FILESDIR}/* ${WRKSRC}
+ ${TOUCH} ${PKGMAKECONF}
do-build:
.for _output_ in ${OUTPUTS}
+ @${ECHO} "-----> Building ${_output_} output"
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} ${_output_}
.endfor