for all of 6.1 to 8.2 *** 6.1-RELEASE/ports/Mk/bsd.port.mk Tue Jul 11 17:07:11 2006 --- 6.1-RELEASE/ports/Mk/bsd.port.mk Tue Jul 11 17:50:46 2006 *************** *** 4759,4770 **** package-depends: @${PACKAGE-DEPENDS-LIST} | ${AWK} '{print $$1":"$$3}' # Build packages for port and dependencies ! ! package-recursive: package @for dir in $$(${ALL-DEPENDS-LIST}); do \ ! (cd $$dir; ${MAKE} package-noinstall); \ ! done ################################################################ # Everything after here are internal targets and really --- 4759,4791 ---- package-depends: @${PACKAGE-DEPENDS-LIST} | ${AWK} '{print $$1":"$$3}' + .if !target(package-recursive) # Build packages for port and dependencies ! package-recursive: package ! @${ECHO_MSG} "===> ${.CURDIR}" ! @${ECHO_MSG} -n "Deps: " ; ${ECHO_MSG} ${ALL-DEPENDS-LIST} @for dir in $$(${ALL-DEPENDS-LIST}); do \ ! ( cd $$dir; echo -n "For ${.CURDIR}: " ;\ ! pwd; ${MAKE} package ) ; \ ! done ! @${ECHO_MSG} "<=== ${.CURDIR}" ! # In the for loop above: ! # 6.1-RELEASE used ${MAKE} package-noinstall instead of packagea. ! # Packages just does first level dependencies I think, ! # Problem: Dependencies of Dependencies do not get made. ! # When all packages are already made for my BERKLIX_SUBDIR=YES, ! # with nothing left to make, it takes 5 minutes. ! # With ${MAKE} package-recursive ! # It should try unlimited recursive, possibly infinite ! # looping if there's anc crossed inter dependencies. ! # For my BERKLIX_SUBDIR=YES, after all packages made, ! # it was still running after an hour. ! # On ports/astro/gpsdrive it seems to lopp forever with package-recursive, ! # & with just package it does not list misc/shared-mime-info in ! # Dependencies: , yet does list it in "For " ! # So it seems package-recursive is not necessary ?. ! .endif ! ################################################################ # Everything after here are internal targets and really