The --target flag doesn't work with Ent. Instead, generate code in ent/ directory and then copy it to internal/ent/ where the code expects it.