Using MAKE instead of the IDE

Is there a tutorial or page that documents using Make (I know how to build makefiles etc), in lieu of the IDE. I'd still like to use the bootloader functions to download sketches from the makefile, but if anyone has a sample makefile to share it would be appreciated

did you take a look at here (http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1265576847)?

Thanks for the pointer. This helped a lot, but I'm not sure what values to put in for MCU and F_CPU. I'm using a MEGA board so I think MCU=atmega1280 is correct, but what about the F_CPU make variable. I think that a speed of 16000000 is correct for 16Mhz per the datasheed for the Mega.