pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk Added the build-env target.
details: https://anonhg.NetBSD.org/pkgsrc/rev/3d5836864001
branches: trunk
changeset: 516410:3d5836864001
user: rillig <rillig%pkgsrc.org@localhost>
date: Thu Jul 20 17:31:20 2006 +0000
description:
Added the build-env target.
diffstat:
mk/bsd.pkg.debug.mk | 22 ++++++++++++++++++----
1 files changed, 18 insertions(+), 4 deletions(-)
diffs (35 lines):
diff -r 1c3ddfd02595 -r 3d5836864001 mk/bsd.pkg.debug.mk
--- a/mk/bsd.pkg.debug.mk Thu Jul 20 17:30:09 2006 +0000
+++ b/mk/bsd.pkg.debug.mk Thu Jul 20 17:31:20 2006 +0000
@@ -1,9 +1,13 @@
-# $NetBSD: bsd.pkg.debug.mk,v 1.2 2006/07/20 17:14:26 rillig Exp $
+# $NetBSD: bsd.pkg.debug.mk,v 1.3 2006/07/20 17:31:20 rillig Exp $
#
-# This file provides the `debug' target, which outputs the values of
-# some commonly used variables and the contents of some files which are
-# useful for tracking bugs.
+# The `debug' target outputs the values of some commonly used variables
+# and the contents of some files which are useful for tracking bugs,
+# especially for packages that use the GNU autotools.
+#
+# The `build-env' target is intended to be used interactively when
+# debugging build problems. It runs a shell in exactly the same
+# environment as in the default do-build target, starting in WRKSRC.
PRINTF?= printf
@@ -117,3 +121,13 @@
_show-dbginfo-plist-subst:
@${PRINTF} "PLIST_SUBST (sorted alphabetically):\\n"
@${PRINTF} "\\t%s\\n" ${PLIST_SUBST:O}
+
+#
+# The build-env target.
+#
+
+.PHONY: build-env
+build-env: configure
+ @${STEP_MSG} "Entering the build environment for ${PKGNAME}"
+ ${_PKG_SILENT}${_PKG_DEBUG} \
+ cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${SH}
Home |
Main Index |
Thread Index |
Old Index