Install git on ubunt - make: *** No rule to make target `all'. Stop.

February 25, 2015 8.8k views

I followed this link to install git Install git on ubntu and I got stuck at this part:

Now, you can make the package and install it by typing these two commands:

make prefix=/usr/local all
sudo make prefix=/usr/local install

I keep getting this error:
make: *** No rule to make target `all'. Stop.

What's the cause of this issue?!

1 comment
  • Why are you compiling and installing git yourself instead of using the version from your package manager?

    Just do apt-get install git and you're done.

1 Answer
make: *** No rule to make target `all'.  Stop.

Generally an error like that would suggest that you are not in the correct directory. Is there a file named Makefile in your current directory?

Though as @gp+digitalocean suggests, simply running sudo apt-get install git will install git for you without having to build it from source.

Have another answer? Share your knowledge.