more makefile changes

notable changes:
* no more install -D (so it works on OS X)
* uglify.js will be used if it is installed to shrink the javascript
* made much less hacky by using makefile's eval