www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/08/20/21:04:29

Date: Thu, 20 Aug 1998 21:00:55 -0400 (EDT)
Message-Id: <199808210100.VAA22487@delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp-workers AT delorie DOT com
Subject: subtle make bugs

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019