Mail Archives: djgpp/1997/09/17/13:34:04
On Wed, 17 Sep 1997, Cesar Scarpini Rabak wrote:
> The comment character is not being handled correctly when it appears in a
> rule of a makefile.
>
> foo: foo.o
> $(CC) $(LDOPT) -o $@ $^ # this comment breaks DJGPP make
This is not a bug in Make. `#' is a character special to Unix shells, so
Make on Unix calls the shell when it sees such a character, and the shell
also treats this as a comment. If you set SHELL = bash.exe on MSDOS, it
will also work.
- Raw text -