finish target and rule