Made Makefile more smart.

And it works properly!
DO NOT WANT.
Merge pull request #4 from monokrome/master

Made Makefile more smart.