From 8d0e937ff75e747ea7279ff320391573992f1e92 Mon Sep 17 00:00:00 2001 From: tron Date: Fri, 26 Oct 2001 21:42:44 +0000 Subject: Add a new "show-vars" target which allows to display several makefile variables at once. --- mk/bsd.pkg.mk | 8 +++++++- mk/bsd.pkg.subdir.mk | 4 ++-- 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 -- cgit v1.2.3