split initialising a targets_t struct into make_target function