list_head_init(&m->deps);
list_head_init(&m->test_deps);
+ /* Trim trailing /. */
len = strlen(m->dir);
while (len && m->dir[len-1] == '/')
m->dir[--len] = '\0';
errx(1, "I don't expect to be run from the root directory");
m->basename++;
+ assert(strstarts(m->dir, find_ccan_dir(m->dir)));
+ m->modname = m->dir + strlen(find_ccan_dir(m->dir)) + strlen("ccan/");
+
add_files(m, "");
/* Nicer to run tests in a predictable order. */