load error. avrdude reads fuses but won't write.

I want to be able to run any program I write without having to paste the arduino IDE output and altering it to suit my needs. I want to be able to just have my makefile do the work for me.