summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2007-10-10 05:45:47 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2007-10-10 05:45:47 +0000
commit21a91d0529054237d5da2242ca830962057eddba (patch)
treed19e9cf4d59b0a74f0f0b90dcd901c00e27e507f /doc
parent9e5f544f4a123c04a2477d5252cccf15111420a1 (diff)
downloadpkgsrc-21a91d0529054237d5da2242ca830962057eddba.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')
-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