When I first found out about this, I had the same thoughts as well. But eventually I encounter more and more problems regarding permissions, thus making me trade security for convenience.
Although I highly don't recommend doing this for production applications as well. But I just use this for my pet projects as well as for learning purposes.
It still seems like you're going to a lot of trouble for it compared to setting NOPASSWD: ALL in sudoers. And it's easy to forget what you did in a makefile and publish it.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.