diff options
author | agc <agc> | 2001-01-05 17:37:12 +0000 |
---|---|---|
committer | agc <agc> | 2001-01-05 17:37:12 +0000 |
commit | d16192a50d2c47fb41227785f752986c65a174ea (patch) | |
tree | dace3d2988c184a4d524a2d271f2447e6587f186 | |
parent | f82cf5f71dce860f8cf6f90d9d42c3694254be67 (diff) | |
download | pkgsrc-d16192a50d2c47fb41227785f752986c65a174ea.tar.gz |
Add a "show-license" target, and a "show-licence" alias, to display
the package's licence, if it's non-standard.
-rw-r--r-- | mk/bsd.pkg.mk | 8 |
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. # |