new reconfig-recursive target for ports
Josh Carroll
josh.carroll at gmail.com
Wed Sep 24 15:54:45 UTC 2008
All,
Note: I'm not currently subscribed to ports@, please cc: me on replies.
I was wondering what peoples' thoughts are on a "reconfig-recursive"
target for ports? Basically, the same as config-recursive, but instead
of using config-conditional for each dependency, it would use config.
This might be useful for someone who wants to review dependecies'
options and/or make changes, but without having to manually iterate
through them or rmconfig-recursive first.
I figured this might come in handy. Thoughts?
Patch is below.
Thanks!
Josh
--- Mk/bsd.port.mk.old 2008-09-24 11:21:20.000000000 -0400
+++ Mk/bsd.port.mk 2008-09-24 11:21:02.000000000 -0400
@@ -5934,6 +5934,14 @@
done
.endif
+.if !target(reconfig-recursive)
+reconfig-recursive:
+ @${ECHO_MSG} "===> Setting user-specified options for
${PKGNAME} and dependencies";
+ @for dir in ${.CURDIR} $$(${ALL-DEPENDS-LIST}); do \
+ (cd $$dir; ${MAKE} config); \
+ done
+.endif
+
.if !target(config-conditional)
config-conditional:
.if defined(OPTIONS)
More information about the freebsd-ports
mailing list