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

Posted February 25, 2015 12.4k 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.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
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.