summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2001-10-26 21:42:44 +0000
committertron <tron@pkgsrc.org>2001-10-26 21:42:44 +0000
commit8d0e937ff75e747ea7279ff320391573992f1e92 (patch)
tree2defb30fea2faa907d7799cef49a7986233cc5c7
parent7146b146991e0d1095f9c7f52e68f3654957b863 (diff)
downloadpkgsrc-8d0e937ff75e747ea7279ff320391573992f1e92.tar.gz
Add a new "show-vars" target which allows to display several makefile
variables at once.
-rw-r--r--mk/bsd.pkg.mk8
-rw-r--r--mk/bsd.pkg.subdir.mk4
2 files changed, 9 insertions, 3 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index ab6aa798fab..325adf5c23f 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.835 2001/10/26 17:03:04 jlam Exp $
+# $NetBSD: bsd.pkg.mk,v 1.836 2001/10/26 21:42:44 tron Exp $
#
# This file is in the public domain.
#
@@ -3002,6 +3002,12 @@ show-pkgtools-version:
show-var:
@${ECHO} ${${VARNAME}:Q}
+# enhanced version of target above, to display multiple variables
+show-vars:
+.for VARNAME in ${VARNAMES}
+ @${ECHO} ${${VARNAME}:Q}
+.endfor
+
.if !target(print-build-depends-list)
print-build-depends-list:
. if defined(BUILD_DEPENDS) || defined(DEPENDS)
diff --git a/mk/bsd.pkg.subdir.mk b/mk/bsd.pkg.subdir.mk
index c167701db86..bcea7019647 100644
--- a/mk/bsd.pkg.subdir.mk
+++ b/mk/bsd.pkg.subdir.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.subdir.mk,v 1.43 2001/03/06 16:14:35 wiz Exp $
+# $NetBSD: bsd.pkg.subdir.mk,v 1.44 2001/10/26 21:42:44 tron Exp $
# Derived from: FreeBSD Id: bsd.port.subdir.mk,v 1.19 1997/03/09 23:10:56 wosch Exp
# from: @(#)bsd.subdir.mk 5.9 (Berkeley) 2/1/91
#
@@ -96,7 +96,7 @@ ${SUBDIR}::
.for __target in all fetch fetch-list package extract configure build clean \
cleandir distclean depend describe reinstall tags checksum \
makepatchsum mirror-distfiles deinstall show-downlevel \
- show-pkgsrc-dir show-var bulk-install bulk-package \
+ show-pkgsrc-dir show-var show-vars bulk-install bulk-package \
${PKG_MISC_TARGETS}
.if !target(__target)
${__target}: _SUBDIRUSE