Mail Archives: djgpp/1997/09/17/12:08:56
In article <1 DOT 5 DOT 4 DOT 32 DOT 19970917150341 DOT 00693d1c AT dce03 DOT ipt DOT br> you wrote:
> The comment character is not being handled correctly when it appears in a
> rule of a makefile.
That's because it's not in the rule itself (i.e. the line saying
"foo: foo.o"), but in the *command* lines associated with it:
> foo: foo.o
> $(CC) $(LDOPT) -o $@ $^ # this comment breaks DJGPP make
These commands are executed by "the command line interpreter of the
operating system", i.e., by command.com in DOS, unless you tell make
to use Bash.
Sadly, one of command.com's many disadvantages is that it doesn't know
a bit about '#' as a comment character.
Summing it up, this is not a make bug, it's a misinterpretation about
whose duty it is to interpret the '#' here.
HBB
- Raw text -