delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/17/13:34:04

Date: Wed, 17 Sep 1997 20:32:06 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Cesar Scarpini Rabak <csrabak AT dce03 DOT ipt DOT br>
cc: djgpp AT delorie DOT com
Subject: Re: make 3.75 ported to DJGPP not handling correctly comments
In-Reply-To: <1.5.4.32.19970917150341.00693d1c@dce03.ipt.br>
Message-ID: <Pine.SUN.3.91.970917203012.29370A-100000@is>
MIME-Version: 1.0

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 -


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