Mail Archives: djgpp-workers/1998/08/20/21:04:29
This makefile fails, because it things that o: is a drive letter:
foo.o:/foo.c
This makefile fails because it doesn't think that o: is a drive letter:
foo.o : o:foo.c
The code that does this is apparently quite flawed (two similar cases
in make's read.c):
/* For MS-DOS, skip a "C:\...". */
if (p != 0 && p[1] == '\\' && isalpha (p[-1]))
p = 0;
It needs to check that there's exactly one letter before the colon
(beginning of line or preceeded by whitespace or non-file-name-char),
it needs to allow both slash types, and it should allow any valid file
character to follow the colon. Was there a good reason we (I?) did it
the way we did, and haven't fixed it yet?
DJ
- Raw text -