summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authoragc <agc>1999-09-28 10:03:16 +0000
committeragc <agc>1999-09-28 10:03:16 +0000
commitb379a8ab2579d9d358a0c747d02195325cc01704 (patch)
treed0ffce6a7ff819fc8d769d83292aa2dbe710254c /mk
parent805b686e4125d39a46d038e9e7ab6fec2aa4c805 (diff)
downloadpkgsrc-b379a8ab2579d9d358a0c747d02195325cc01704.tar.gz
Add a convenience target called "show-var", which will echo a make(1)
variable from the command line: i.e. "make show-var VARNAME=var" will echo var's value
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 31c526257af..50b19050597 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.345 1999/09/27 17:08:43 fredb Exp $
+# $NetBSD: bsd.pkg.mk,v 1.346 1999/09/28 10:03:16 agc Exp $
#
# This file is in the public domain.
#
@@ -2255,6 +2255,11 @@ show-pkgtools-version:
.endif
.endif
+# convenience target, to display make variables from command line
+# i.e. "make show-var VARNAME=var", will print var's value
+show-var:
+ ${ECHO} "${${VARNAME}}"
+
.if !target(print-depends-list)
print-depends-list:
.if defined(BUILD_DEPENDS) || defined(DEPENDS)