Date: Wed, 17 Sep 1997 18:09:12 +0200 From: Hans-Bernhard Broeker Subject: Re: make 3.75 ported to DJGPP not handling correctly comments To: csrabak AT dce03 DOT ipt DOT br (Cesar Scarpini Rabak) Cc: djgpp AT delorie DOT com Message-id: <01INRBA1PE2W8WVYJI@mail> Organization: RWTH Aachen, III. physikalisches Institut B Content-transfer-encoding: 7BIT Newsgroups: comp.os.msdos.djgpp Precedence: bulk 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