summaryrefslogtreecommitdiff
path: root/mk/bsd.utils.mk
AgeCommit message (Collapse)AuthorFilesLines
2006-01-23Instead of accumulating _ALL_DEPENDS_PKGSRCDIRS, accumulate _ALL_DEPENDSjlam1-4/+4
instead -- this keeps more information around.
2006-01-19Remove some unnecessary parens... we don't need to invoke a new shelljlam1-3/+3
just to run the depends-walk command.
2006-01-18Move the following targets from bsd.pkg.mk to bsd.utils.mk:jlam1-3/+17
show-depends-dirs show-all-depends-dirs show-all-depends-dirs-excl While we're here, reimplement them using the new pkg_paths and depends-depth-first.awk scripts. As a side effect, this speeds up the execution of these targets by around 5-15% depending on the complexity of the dependency graph. NOTE: This *does* change the behavior of these targets slightly because the output is now newline-separated instead of space-separated, and the order of the output lines doesn't match the original targets because the dependency graph is now walked depth-first instead of breadth first.
2006-01-18Modify the show-depends-pkgpaths implementation so that we don't assumejlam1-8/+12
package directories specified in DEPENDS lines begin with "../..". The new standalone script pkgsrc/mk/scripts/pkg_path will canonicalize them into package paths relative to ${PKGSRCDIR}.
2006-01-18Pass MAKEFLAGs to the depends-depth-first.awk script, which will bejlam1-4/+6
used by the "make show-depends-pkgpaths" process to short-circuit some of the rather lengthy computations that are spread throughout bsd.pkg.mk and files included by bsd.pkg.mk. This causes the script to speed up noticeably. Also, rename the _DEPENDS_DEPTH_FIRST_CMD variable to _DEPENDS_WALK_CMD for brevity and to allow for other implementations in the future.
2006-01-18Create a standalone awk script, depends-depth-first.awk, that encapsulatesjlam1-0/+34
the code that performs the dependency graph traversal (in depth-first fashion). This script has a hook that allows executing a shell command line upon visiting a dependency's package directory in either prefix or postfix order, and may be used to simplify the code in bsd.pkg.mk that iterates over dependencies. This awk script requires the target "show-depends-pkgpaths", which is defined in a new Makefile pkgsrc/mk/bsd.utils.mk. This file should accumulate "utility" targets that current exist in bsd.pkg.mk, i.e., "helper" targets for various actions.