summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authoragc <agc>2001-01-05 17:37:12 +0000
committeragc <agc>2001-01-05 17:37:12 +0000
commit953bb01eaaf4f227299bdc77d936555b94829d7f (patch)
treedace3d2988c184a4d524a2d271f2447e6587f186 /mk
parentd6f34a3ed7c9cf9b37469175575d39d0864fe583 (diff)
downloadpkgsrc-953bb01eaaf4f227299bdc77d936555b94829d7f.tar.gz
Add a "show-license" target, and a "show-licence" alias, to display
the package's licence, if it's non-standard.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 72210e42db5..0555a9ece5f 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.634 2001/01/04 15:10:50 agc Exp $
+# $NetBSD: bsd.pkg.mk,v 1.635 2001/01/05 17:37:12 agc Exp $
#
# This file is in the public domain.
#
@@ -2942,6 +2942,12 @@ print-run-depends-list:
.endif
.endif
+.if !target(show-license)
+show-license show-licence:
+ @if [ "${LICENSE}" != "" ]; then \
+ ${CAT} ${PKGSRCDIR}/licenses/${LICENSE}; \
+ fi
+.endif
# Stat all the files of one pkg and sum the sizes up.
#