Create two new files that complement the Makefile

Move all of the detection rules to Detection.mk and move all of the
actual building rules to Rules.mk. This leaves Makefile as a simple
declaration list.