Fix linking for tools, and add tools: target.
[ccan] / tools / create_dep_tar.c
index 78bdea6c9031f833cc4da09f1b518a18956a288a..f807ae9b2b5f9199864e5dfb035a04ba7fbacf87 100644 (file)
@@ -4,7 +4,8 @@
 #include <stdio.h>
 #include <string.h>
 #include <sqlite3.h>
-#include "ccan/string/string.h"
+#include "ccan/grab_file/grab_file.h"
+#include "ccan/str_talloc/str_talloc.h"
 #include "ccan/talloc/talloc.h"
 #include "tools/_infotojson/database.h"
 
@@ -81,7 +82,7 @@ int main(int argc, char *argv[])
        printf("creating tar ball of \"%s\"\n", argv[1]);       
 
        /* creating tar of the module dependencies */
-       deps = get_deps(talloc_autofree_context(), argv[1]);
+       deps = get_deps(talloc_autofree_context(), argv[1], true);
        if (deps != NULL)
                create_tar(deps, argv[1], argv[2]);
        talloc_free(deps);
@@ -91,7 +92,7 @@ int main(int argc, char *argv[])
        if (dependents != NULL)
                for (i = 0; dependents[i]; i++) {       
                        printf("creating tar ball of \"%s\"\n", dependents[i]); 
-                       deps = get_deps(NULL, dependents[i]);
+                       deps = get_deps(NULL, dependents[i], true);
                        if (deps != NULL)
                                create_tar(deps, dependents[i], argv[2]);                       
                        talloc_free(deps);