Linux code update

Hey. I have a Makefile file i want to compile, but the code its from a previous linux kernel. Is there a way to automaticaly update the code to the latest linux kernel or something?