Chinaunix首页 | 论坛 | 博客
  • 博客访问: 236015
  • 博文数量: 75
  • 博客积分: 2005
  • 博客等级: 大尉
  • 技术积分: 790
  • 用 户 组: 普通用户
  • 注册时间: 2004-10-27 14:54
文章分类

全部博文(75)

文章存档

2009年(2)

2008年(5)

2006年(25)

2005年(42)

2004年(1)

我的朋友

分类:

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

阅读(1085) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~