Refactor.
More intelligent Makefile.