How to remove all files but one from command line?

To remove all files but a given one do:

find . -type f -not -name "application.make" | xargs rm

To also remove the directories do:

find . -not -name "application.make" | xargs rm -r