08-18-05 10:54 PM
Fernando Barsoba wrote:
> Hi there,
>
> Silly situation keeps me from continuing w/ my tests... I'm trying to
> execute the following makefile in a Linux machine:
>
> *********************************
> all:
> listen speak
>
> listen: listen.o
> gcc -g listen.c -o listen
>
> speak: speak.o
> gcc -g speak.c -o speak
>
> clean:
> \rm -f listen speak
>
> squeaky:
> make clean
> \rm -f listen.o speak.o
>
> #tar:
> # cd ..; tar czvf socket.tar.gz socket/Makefile socket/listen.c
> socket/speak.c socket/README; cd socket; mv ../socket.tar.gz .
> *********************************
>
> But for some reason, I get this error:
> ***************
> eos% ./Makefile
> ./Makefile: line 1: all:: command not found
> ./Makefile: line 2: listen: command not found
> ./Makefile: line 4: listen:: command not found
> ./Makefile: line 7: speak:: command not found
> ./Makefile: line 10: clean:: command not found
> ./Makefile: line 13: squeaky:: command not found
> ***************
>
> any idea what is this about?
>
> Thank you very much,
>
> Fernando
Ok, i realized what my mistake was... you should call makefile with the
make command... :-(
thanks anyway..
[ Post a follow-up to this message ]
|