Do not confuse the enum scanner
Cleanly separate built sources

This fixes building from builddir != srcdir