Mail Archives: djgpp/1997/09/18/06:39:05
Peter J. Farley III (pjfarley AT dorsai DOT org) wrote:
> *But* is that the correct definition? Speaking as a relative
> outsider to *nix environments, I must say it would *appear* to
> be the responsibility of *make* to strip unquoted comments,
> since '#' is *also* the *make* comment character.
Certainly other DOS implementations of 'make' have done so. This
doesn't necessarily make it right, of course, but your argument
certainly has some evidence behind it.
However, I just tried it under Unix (DEC Alpha under OSF/1) with
both the proprietary make and with GNU make, and it is indeed all
passed to the command directly with the DEC versin but not with
the GNU one (GNU make seems to always pass it to the shell -
still with everything including the comment).
For instance, if you have:
fred.txt:
echo #ifdef FRED > fred.txt
it will put "#ifdef FRED" into the file (the shell is TCSH - I
haven't tried that with othe shells).
Also, isn't the DJGPP make just a port, with minimal changes? That
would argue against making something like this
Chris C
(OK, how did the Dorsai Embassy get to NY? Does
Gordon Dickson know?)
- Raw text -