summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>1995-07-11 02:15:35 +0000
committerasami <asami@FreeBSD.org>1995-07-11 02:15:35 +0000
commit919efb0db9f1afbda0d6ea3f2a40b3ce5a4fb566 (patch)
treef51794a072a2eddbcfa234a06bc8ac0fb4c41727
parent58d51e4ed46f52a99050136bfa9edbc85f08e53e (diff)
downloadFreeBSD-src-919efb0db9f1afbda0d6ea3f2a40b3ce5a4fb566.zip
FreeBSD-src-919efb0db9f1afbda0d6ea3f2a40b3ce5a4fb566.tar.gz
Add IS_DEPENDED_TARGET to change the behavior of a port when you want
to do something else than "install". For example, make IS_DEPENDED_TARGET=fetch fetch will fetch the required distfiles including those of the dependencies without actually building and installing dependencies. Also document ECHO_MSG. Requested by: paul Reviewed by: paul, jhs and others
-rw-r--r--share/mk/bsd.port.mk20
1 files changed, 18 insertions, 2 deletions
diff --git a/share/mk/bsd.port.mk b/share/mk/bsd.port.mk
index 9e55e06..680a7ff 100644
--- a/share/mk/bsd.port.mk
+++ b/share/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.169 1995/06/26 07:01:20 asami Exp $
+# $Id: bsd.port.mk,v 1.170 1995/06/26 07:06:59 asami Exp $
#
# Please view me with 4 column tabs!
@@ -127,6 +127,18 @@
# NCFTPFLAGS - Arguments to ${NCFTP} (default: -N).
#
#
+# Variables to change if you want a special behavior:
+#
+# ECHO_MSG - Used to print all the '===>' style prompts - override this
+# to turn them off (default: /bin/echo).
+# IS_DEPENDED_TARGET -
+# The target to execute when a port is called as a
+# dependency (default: install). E.g., "make fetch
+# IS_DEPENDED_TARGET=fetch" will fetch all the distfiles,
+# including those of dependencies, without actually building
+# any of them).
+#
+#
# Default targets and their behaviors:
#
# fetch - Retrieves ${DISTFILES} (and ${PATCHFILES} if defined)
@@ -370,8 +382,12 @@ package:
all: build
.endif
+.if !defined(IS_DEPENDED_TARGET)
+IS_DEPENDED_TARGET= install
+.endif
+
.if !target(is_depended)
-is_depended: install
+is_depended: ${IS_DEPENDED_TARGET}
.endif
################################################################
OpenPOWER on IntegriCloud