X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;ds=sidebyside;f=tools%2Fccan_depends.c;h=b055e44eb1f53e1aee4c5e6f42731c195ce66555;hb=3d4c75ff37b1c5a7bfd8847a788aa1d09b07d466;hp=91d7c98983c772c6acc989b467d2e782be209ccd;hpb=a8b248ea9de55316cac4423a99a727ca7b54e0fc;p=ccan diff --git a/tools/ccan_depends.c b/tools/ccan_depends.c index 91d7c989..b055e44e 100644 --- a/tools/ccan_depends.c +++ b/tools/ccan_depends.c @@ -11,6 +11,7 @@ int main(int argc, char *argv[]) unsigned int i; bool compile = false; bool recurse = true; + bool ccan = true; if (argv[1] && streq(argv[1], "--direct")) { argv++; @@ -22,18 +23,28 @@ int main(int argc, char *argv[]) argc--; compile = true; } + if (argv[1] && streq(argv[1], "--non-ccan")) { + argv++; + argc--; + ccan = false; + } if (argc != 2) - errx(1, "Usage: ccan_depends [--direct] [--compile]