makefile mustard

some stuff i thought would be useful, feel free to destroy me :), some things might be useful though.. but if something is bad we can always cherry-pick for the good stuff