Move 'make code' from src/ to root

As suggested in #772.  Additionally, makes the invocation safe if builddir != srcdir.