~/workspace/pset1/cash/ $ make cash make: *** No rule to make target `cash'. Stop. ~/workspace/pset1/cash/ $ cd pset1 bash: cd: pset1: No such file or directory
Did you save the file as
cash.c, and did you save it in the directory
~/workspace/pset1/cash/? Only then,
make could deduct from the existence of a
.c file of the same name how to build this target. As you have no Makefile, it will use an internal rule (and several environment variables) for that, but it needs to see the
If you're unsure,
ls (short for "list") lists all the files in the current directory.