delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/17/12:08:56

Date: Wed, 17 Sep 1997 18:09:12 +0200
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
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
Newsgroups: comp.os.msdos.djgpp

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 -


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