I'm creating a Makefile
for my project:
build:
sudo gem install sass
Any time I build it's asking me for my superuser password. If I remove sudo
it will not install at all, but throw an error instead, as I don't have permissions to install a gem
.
So I came up with an idea, that I want to check whether the gem
already exists, and run installing command only when it doesn't.
So the question is how to perform this check inside Makefile
.