27 dbg_cmd_load(
char *psz_filename)
29 if (psz_filename && *psz_filename) {
31 char *psz_expanded_file;
34 glob(psz_filename, 0, NULL, &p);
35 if (0 == p.gl_pathc) {
37 int ret = stat(psz_filename, &stat_buf);
42 psz_expanded_file = psz_filename;
44 }
else if (1 != p.gl_pathc) {
45 dbg_errmsg(
"Expansion of %s doesn't lead to a single filename. \n" 47 psz_filename, p.gl_pathc);
51 psz_expanded_file = p.gl_pathv[0];
57 if (p_goaldep == NULL) {
58 dbg_errmsg(
"error reading Makefile %s (expanded to %s):",
59 psz_filename, psz_expanded_file);
74 dbg_cmd_load_init(
unsigned int c)
76 short_command[c].func = &dbg_cmd_load;
77 short_command[c].use =
_(
"load *Makefile*");
struct goaldep * eval_makefile(const char *filename, unsigned short flags)
debug_return_t
Definition: trace.h:32
#define _(msgid)
Definition: make.h:293
#define free_goaldep(_g)
Definition: dep.h:131