5 #include <ccan/str/str.h>
6 #include <ccan/talloc/talloc.h>
8 int main(int argc, char *argv[])
15 if (argv[1] && streq(argv[1], "--direct")) {
20 if (argv[1] && streq(argv[1], "--compile")) {
26 errx(1, "Usage: ccan_depends [--direct] [--compile] <dir>\n"
27 "Spits out all the ccan dependencies (recursively unless --direct)");
30 deps = get_deps(talloc_autofree_context(), argv[1], recurse);
32 deps = get_safe_ccan_deps(talloc_autofree_context(), argv[1],
35 for (i = 0; deps[i]; i++)
36 if (strstarts(deps[i], "ccan/"))
37 printf("%s\n", deps[i]);