Don't generate builddir definition in GNU makefiles unnecessarily.

This is not needed in top-level makefiles which don't build anything
themselves.