add testlocal target and targets for auto-generated files