delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/02/19/01:59:00

Date: Mon, 19 Feb 2001 08:50:40 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Eddy Ilg <eddyilg AT t-online DOT de>
cc: djgpp AT delorie DOT com
Subject: Re: Win 2000 and ;
In-Reply-To: <96pan4$188$02$1@news.t-online.com>
Message-ID: <Pine.SUN.3.91.1010219085014.18927F-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Sun, 18 Feb 2001, Eddy Ilg wrote:

> When I try this it fails.
> 
> main.obj: main.c
>     $(CC) main.c -omain.obj; echo "test"

Fails--how?  Does it fail to compile?  Doesn't it print "echo" as you
wanted it?  What goes wrong, exactly, that leads you to believe it
fails?

> make tries to execute the command $(CC) main.c -o$(OBJ)/main.obj; echo
> "test" as one and NOT $(CC) main.c -o$(OBJ)/main.obj and echo "test"
> sepeartely.
> Why could this be?

It's a feature: the DJGPP port of Make supports multiple commands on a
single command line.  It does run the commands one after the other,
however.  So I wonder what exactly failed for you.

- Raw text -


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