#define PARSEFS_NOGLOB 0x0004
#define PARSEFS_EXISTS 0x0008
#define PARSEFS_NOCACHE 0x0010
+#define PARSEFS_ONEWORD 0x0020
#define PARSE_FILE_SEQ(_s,_t,_c,_p,_f) \
(_t *)parse_file_seq ((_s),sizeof (_t),(_c),(_p),(_f))
/* Parse the expanded string. It might have wildcards. */
p = depname;
- dl = PARSE_SIMPLE_SEQ (&p, struct dep);
+ dl = PARSE_FILE_SEQ (&p, struct dep, MAP_NUL, NULL, PARSEFS_ONEWORD);
for (d = dl; d != NULL; d = d->next)
{
++deps_found;
char *p;
glob_t gl;
char *tp;
- int findmap = stopmap|MAP_VMSCOMMA|MAP_BLANK|MAP_NUL;
+ int findmap = stopmap|MAP_VMSCOMMA|MAP_NUL;
+
+ if (NONE_SET (flags, PARSEFS_ONEWORD))
+ findmap |= MAP_BLANK;
/* Always stop on NUL. */
stopmap |= MAP_NUL;
unlink('a.c');
+# SV 56655: Test patterns matching files containing whitespace
+touch('some file.yy');
+run_make_test(q!
+%.xx : %.yy ; @echo matched
+!, 'some\ file.xx', "matched\n");
+
+unlink('some file.xx', 'some file.yy');
+
# This tells the test driver that the perl test script executed properly.
1;