just keep doing the same thing, use lock on to find your new target. After your done with both wings, then your done witht the dragon.
This is the order of things you destroy (I think it's right, but I've only fought it once, so correct me if i'm wrong):
1. It's tail
2. Engine 1
3. Engine 2
4. Left Wing
5. Right Wing