Move ecm_generate_pri_file below the definition of the target
So it will get defined first and not error out.