diff options
author | khorben <khorben@pkgsrc.org> | 2020-11-04 16:38:59 +0000 |
---|---|---|
committer | khorben <khorben@pkgsrc.org> | 2020-11-04 16:38:59 +0000 |
commit | 0d1d1b0fbb03d170e1206febacd3f67f4dfd2bed (patch) | |
tree | e9188dd516130d52499937493305fd9a8a34c982 /mk | |
parent | 05950d8c6af1c52dce3aa7e7fc0adb7e83146119 (diff) | |
download | pkgsrc-0d1d1b0fbb03d170e1206febacd3f67f4dfd2bed.tar.gz |
Support PKGPATH with "make package-name"
Now dependencies can be listed either by package name, or path to the
package (eg with "make PACKAGE_NAME_TYPE=path build-depends-list").
Users of PACKAGE_NAME_TYPE=html could use a combination of
PACKAGE_NAME_TYPE=name and PACKAGE_NAME_TYPE=path instead now.
No objection from tech-pkg@
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.readme.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/bsd.pkg.readme.mk b/mk/bsd.pkg.readme.mk index d04d0d755cd..e74f6da591b 100644 --- a/mk/bsd.pkg.readme.mk +++ b/mk/bsd.pkg.readme.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.readme.mk,v 1.28 2014/10/09 13:50:08 wiz Exp $ +# $NetBSD: bsd.pkg.readme.mk,v 1.29 2020/11/04 16:38:59 khorben Exp $ # # This Makefile fragment is included by bsd.pkg.mk and encapsulates the # code to produce README.html files in each package directory. @@ -42,6 +42,8 @@ _HTML_PKGLINK= <a href="../../${PKGPATH}/README.html">${PKGNAME}</a> package-name: . if (${PACKAGE_NAME_TYPE} == "html") @${ECHO} ${_HTML_PKGLINK:Q} +. elif (${PACKAGE_NAME_TYPE} == "path") + @${ECHO} ${PKGPATH} . else @${ECHO} ${PKGNAME} . endif # PACKAGE_NAME_TYPE |