In pset1 when I try to compile by typing make water
make: *** No rule to make target `water'. Stop.
And I am in pset1 directory only.how can I compile it??

  • Could you include your water code, as well as maybe a screenshot of your terminal? – SuperNovaCoder Mar 12 '17 at 16:21

Providing a screenshot of your terminal would be helpful, typically that error indicates you are not in the correct directory location but you indicate that you are.

You could try the following in the Terminal (assuming the problem is that you are not in the correct directory):

$ cd ~
$ cd workspace/pset1
$ make water

If this doesn't work, perhaps your .c file is not in the relevant location? Have you perhaps saved it somewhere else and when you attempt the make water you are in a directory other than /pset1/

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .