summaryrefslogtreecommitdiff
path: root/Mk/bsd.port.mk
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1995-04-09 12:27:58 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1995-04-09 12:27:58 +0000
commit9b46e88ed1655f2daa79cc8896ca8a6a9bb49807 (patch)
tree85b47778211ba2ac3b9185625e43543c7a85deb8 /Mk/bsd.port.mk
parent1. Fix the first line (should be a proper comment - silly emacs). (diff)
Add 2 new targets to facilitate some things I'm thinking about.
1. package-name Simply echos the associated package name for a port (if any). 2. package-depends Shows all package names on which this port depends.
Notes
Notes: svn path=/head/; revision=1316
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r--Mk/bsd.port.mk22
1 files changed, 21 insertions, 1 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 8f373cac4823..dba6fdd290e7 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -3,7 +3,7 @@
# bsd.port.mk - 940820 Jordan K. Hubbard.
# This file is in the public domain.
#
-# $Id: bsd.port.mk,v 1.133 1995/04/09 09:59:42 asami Exp $
+# $Id: bsd.port.mk,v 1.134 1995/04/09 10:24:09 jkh Exp $
#
# Please view me with 4 column tabs!
@@ -416,6 +416,26 @@ ${INSTALL_COOKIE}:
@${TOUCH} ${TOUCH_FLAGS} ${INSTALL_COOKIE}
.endif
+# package-name and package-depends are internal targets and really
+# shouldn't be touched by anybody but the release engineers.
+
+# Nobody should want to override this unless PKGNAME is simply bogus.
+.if !target(package-name)
+package-name:
+.if !defined(NO_PACKAGE)
+ @echo ${PKGNAME}
+.endif
+.endif
+
+# Show (recursively) all the packages this package depends on.
+.if !target(package-depends)
+package-depends:
+ @for i in ${EXEC_DEPENDS} ${LIB_DEPENDS}; do \
+ dir=`echo $$i | sed -e 's/.*://'`; \
+ (cd $$dir ; ${MAKE} package-name package-depends); \
+ done
+.endif
+
.if !target(pre-package)
pre-package:
@${DO_NADA}