Mail Archives: djgpp/2001/02/19/01:59:00
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 -