--- In [email protected], "tailuo2002" <[EMAIL PROTECTED]> wrote: > > Hi,all > > I found a strange problem. This is my Makefile: > > all: > cd src > ls > > When I run make , I got these error messages: > > cd src > cd: can't cd to src > *** Error code 2 > > But my working directory contains a src directory, and I can cd to src > at the Bash command line. > > My OS is FreeBSD 6.1, Bash shell. > > Thank you.
Try adding an 'echo $PWD' before the cd line, just to make sure it is in the directory you think it is?
