全部博文(75)
分类:
2005-02-26 18:57:31
--- bsd.port.mk.orig Mon Jan 3 13:01:03 2005
+++ bsd.port.mk Fri Jan 14 13:26:29 2005
@@ -613,8 +613,10 @@
# config - Configure options for this port (using ${DIALOG}).
# Automatically run prior to extract, patch, configure, build,
# install, and package.
+# config-recursive - Do a "make config" for this port and all dependencies.
# showconfig - Display options config for this port
# rmconfig - Remove the options config for this port
+# rmconfig-recursive - Remove the options config for this port and all dependencies.
#
# Default sequence for "all" is:
#
@@ -4969,6 +4971,21 @@
.endif
.endif
+.if !target(config-recursive)
+config-recursive:
+ @${ECHO_MSG} "===> Setting user-specified options for ${PKGNAME} and dependencies";
+ @for dir in ${.CURDIR} $$(${ALL-DEPENDS-LIST}); do
+ (cd $$dir; ${MAKE} config-conditional);
+ done
+.endif
+
+.if !target(config-conditional)
+config-conditional:
+.if defined(OPTIONS) && !exists(${_OPTIONSFILE})
+ cd ${.CURDIR} && ${MAKE} config;
+.endif
+.endif
+
.if !target(showconfig)
showconfig:
.if defined(OPTIONS) && exists(${_OPTIONSFILE})
@@ -5017,6 +5034,14 @@
.else
@${ECHO_MSG} "===> No user-specified options configured for ${PKGNAME}"
.endif
+.endif
+
+.if !target(rmconfig-recursive)
+rmconfig-recursive:
+ @${ECHO_MSG} "===> Removing user-specified options for ${PKGNAME} and dependencies";
+ @for dir in ${.CURDIR} $$(${ALL-DEPENDS-LIST}); do
+ (cd $$dir; ${MAKE} rmconfig);
+ done
.endif
.endif