Target earnings flat in second quarter