Date: Wed, 24 Sep 2008 11:28:43 -0400 From: "Josh Carroll" <josh.carroll@gmail.com> To: freebsd-ports@freebsd.org Subject: new reconfig-recursive target for ports Message-ID: <8cb6106e0809240828v3ebe1095w898597fea2d40272@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8cb6106e0809240828v3ebe1095w898597fea2d40272>