I would use something like:
/targetenemy [noharm, dead, noexists]
Think I have that correct.

You only want it to target a new enemy if you already dont have one targeted, otherwise your macro will switch targets every time you press it.