More intelligent Makefile.
More intelligent Makefile.