Lines Matching refs:target

78 extern	Doname		doname_check(register Name target, register Boolean do_get, register Boolean implici…
79 extern Doname doname(register Name target, register Boolean do_get, register Boolean implicit, reg…
80 static Boolean check_dependencies(Doname *result, Property line, Boolean do_get, Name target, Name…
81 void dynamic_dependencies(Name target);
88 static void do_assign(register Name line, register Name target);
89 static void build_command_strings(Name target, register Property line);
90 static Doname touch_command(register Property line, register Name target, Doname result);
92 static Doname sccs_get(register Name target, register Property *command);
94 static void add_pattern_conditionals(register Name target);
95 extern void set_locals(register Name target, register Property old_locals);
96 extern void reset_locals(register Name target, register Property old_locals, register Property con…
97 extern Boolean check_auto_dependencies(Name target, int auto_count, Name *automatics);
127 doname_check(register Name target, register Boolean do_get, register Boolean implicit, register Boo… in doname_check() argument
132 switch (doname(target, do_get, implicit, automatic)) { in doname_check()
142 target->string_mb); in doname_check()
168 target->string_mb); in doname_check()
172 fatal(gettext("Don't know how to make target `%s'"), target->string_mb); in doname_check()
182 enter_explicit_rule_from_dynamic_rule(Name target, Name source) in enter_explicit_rule_from_dynamic_rule() argument
188 line = maybe_append_prop(target, line_prop); in enter_explicit_rule_from_dynamic_rule()
190 line->body.line.target = target; in enter_explicit_rule_from_dynamic_rule()
198 line->body.line.less = target; in enter_explicit_rule_from_dynamic_rule()
206 find_dyntarget(Name target) in find_dyntarget() argument
214 Wstring wcb(target); in find_dyntarget()
227 enter_explicit_rule_from_dynamic_rule(target, p->name); in find_dyntarget()
228 return(target); in find_dyntarget()
242 enter_explicit_rule_from_dynamic_rule(target, p->name); in find_dyntarget()
243 return(target); in find_dyntarget()
281 doname(register Name target, register Boolean do_get, register Boolean implicit, register Boolean a… in doname() argument
291 Name true_target = target; in doname()
302 if (target->state == build_running) { in doname()
305 line = get_prop(target->prop, line_prop); in doname()
316 target->state = build_running; in doname()
317 add_pending(target, in doname()
330 if (target->has_target_prop) { in doname()
331 true_target = get_prop(target->prop, in doname()
332 target_prop)->body.target.target; in doname()
349 if (target->state == build_ok) { in doname()
350 if((!keep_state || (!target->depends_on_conditional && !assign_done))) { in doname()
356 if (target->state == build_subtree) { in doname()
358 target->state = build_dont_know; in doname()
360 if (!target->checking_subtree) { in doname()
367 } else if (target->state == build_pending) { in doname()
368 target->state = build_dont_know; in doname()
440 target->string_mb); in doname()
444 if (target->state == build_in_progress) { in doname()
446 target->string_mb); in doname()
449 target->state = build_in_progress; in doname()
452 if (!target->added_pattern_conditionals) { in doname()
453 add_pattern_conditionals(target); in doname()
454 target->added_pattern_conditionals = true; in doname()
456 if (target->conditional_cnt > 0) { in doname()
457 old_locals = (Property) alloca(target->conditional_cnt * in doname()
459 set_locals(target, old_locals); in doname()
468 if (!target->has_depe_list_expanded) in doname()
470 dynamic_dependencies(target); in doname()
477 if ((line = get_prop(target->prop, line_prop)) != NULL) { in doname()
481 target, in doname()
511 if (target->colon_splits == 0 && !rechecking_target) { in doname()
516 target, in doname()
523 target->state = build_running; in doname()
524 add_pending(target, in doname()
529 if (target->conditional_cnt > 0) { in doname()
530 reset_locals(target, in doname()
532 get_prop(target->prop, in doname()
546 if (target->is_member && in doname()
547 ((member = get_prop(target->prop, member_prop)) != in doname()
549 switch (find_ar_suffix_rule(target, in doname()
558 target->state = build_running; in doname()
559 add_pending(target, in doname()
564 if (target->conditional_cnt > 0) { in doname()
565 reset_locals(target, in doname()
567 get_prop(target->prop, in doname()
577 maybe_append_prop(target, in doname()
585 switch (find_double_suffix_rule(target, in doname()
592 target->state = build_running; in doname()
593 add_pending(target, in doname()
598 if (target->conditional_cnt > 0) { in doname()
599 reset_locals(target, in doname()
601 get_prop(target-> in doname()
629 ((line->body.line.target != NULL) && in doname()
630 !line->body.line.target->has_regular_dependency))) { in doname()
631 switch (find_suffix_rule(target, in doname()
632 target, in doname()
640 target->state = build_running; in doname()
641 add_pending(target, in doname()
646 if (target->conditional_cnt > 0) { in doname()
647 reset_locals(target, in doname()
649 get_prop(target->prop, in doname()
660 result = sccs_get(target, &command); in doname()
670 line = maybe_append_prop(target, line_prop); in doname()
691 line->body.line.target = true_target; in doname()
699 if (!target->is_double_colon_parent) { in doname()
709 silent = (Boolean) target->silent_mode; in doname()
713 ignore_errors = (Boolean) target->ignore_error_mode; in doname()
728 add_running(target, in doname()
736 target->state = build_running; in doname()
737 if ((line = get_prop(target->prop, in doname()
744 if (target->conditional_cnt > 0) { in doname()
745 reset_locals(target, in doname()
747 get_prop(target->prop, in doname()
753 add_serial(target, in doname()
757 target->state = build_running; in doname()
758 line = get_prop(target->prop, line_prop); in doname()
765 if (target->conditional_cnt > 0) { in doname()
766 reset_locals(target, in doname()
768 get_prop(target->prop, in doname()
786 if (target->colons != no_colon) { in doname()
797 Name dtarg = find_dyntarget(target); in doname()
799 if (!target->has_depe_list_expanded) { in doname()
800 dynamic_dependencies(target); in doname()
802 if ((line = get_prop(target->prop, line_prop)) != NULL) { in doname()
806 target, in doname()
831 (void) exists(target); in doname()
832 if ((target->stat.time != file_doesnt_exist) && in doname()
843 if ((line = get_prop(target->prop, line_prop)) != NULL) { in doname()
849 target->state = result; in doname()
851 if (target->conditional_cnt > 0) { in doname()
852 reset_locals(target, in doname()
854 get_prop(target->prop, conditional_prop), in doname()
858 if (target->is_member) { in doname()
862 if ((target->stat.time != file_max_time) && in doname()
863 ((member = get_prop(target->prop, member_prop)) != NULL) && in doname()
865 target->stat.time = in doname()
873 if ((result == build_ok) && check_auto_dependencies(target, in doname()
926 check_dependencies(Doname *result, Property line, Boolean do_get, Name target, Name true_target, Bo… in check_dependencies() argument
950 (rechecking_target || target->rechecking_target)) { in check_dependencies()
1037 target->depends_on_conditional = true; in check_dependencies()
1040 target->stat.time = in check_dependencies()
1149 if (target->conditional_cnt > 0) { in check_dependencies()
1150 reset_locals(target, in check_dependencies()
1152 get_prop(target->prop, in check_dependencies()
1158 target->state = build_running; in check_dependencies()
1159 add_pending(target, in check_dependencies()
1164 if (target->conditional_cnt > 0) { in check_dependencies()
1165 reset_locals(target, in check_dependencies()
1167 get_prop(target->prop, in check_dependencies()
1178 if (target->is_double_colon_parent) { in check_dependencies()
1186 target->stat.time = in check_dependencies()
1188 target->stat.time); in check_dependencies()
1203 target->string_mb); in check_dependencies()
1221 line->body.line.target = true_target; in check_dependencies()
1240 ((member = get_prop(target->prop, member_prop)) != in check_dependencies()
1308 dynamic_dependencies(Name target) in dynamic_dependencies() argument
1326 Name true_target = target; in dynamic_dependencies()
1329 if ((line = get_prop(target->prop, line_prop)) == NULL) { in dynamic_dependencies()
1333 if (target->has_target_prop) { in dynamic_dependencies()
1334 true_target = get_prop(target->prop, in dynamic_dependencies()
1335 target_prop)->body.target.target; in dynamic_dependencies()
1344 target->has_depe_list_expanded = true; in dynamic_dependencies()
1571 register Name target = line->body.line.target; in run_command() local
1575 if (!line->body.line.is_out_of_date && target->rechecking_target) { in run_command()
1576 target->rechecking_target = false; in run_command()
1587 build_command_strings(target, line); in run_command()
1612 (target->stat.time != file_doesnt_exist) && in run_command()
1613 ((target->stat.mode & 0222) != 0)) { in run_command()
1615 target->string_mb); in run_command()
1616 target->has_complained = remember_only = true; in run_command()
1644 int len = 2*MAXPATHLEN + strlen(target->string_mb) + 2; in run_command()
1653 MBSTOWCS(to, target->string_mb); in run_command()
1666 current_target = target; in run_command()
1675 result = touch_command(line, target, result); in run_command()
1685 if (!parallel_ok(target, true)) { in run_command()
1695 result = execute_parallel(line, true, target->localhost); in run_command()
1712 result = execute_parallel(line, true, target->localhost); in run_command()
1716 target->parallel = false; in run_command()
1724 result = execute_parallel(line, true, target->localhost); in run_command()
1767 Name target = line->body.line.target; in execute_serial() local
1769 target->has_recursive_dependency = false; in execute_serial()
1805 do_assign(rule->command_line, target); in execute_serial()
1817 target); in execute_serial()
1831 target->string_mb); in execute_serial()
2073 do_assign(register Name line, register Name target) in do_assign() argument
2110 target->string_mb); in do_assign()
2156 build_command_strings(Name target, register Property line) in build_command_strings() argument
2189 if (target->is_member && in build_command_strings()
2190 ((member = get_prop(target->prop, member_prop)) != NULL)) { in build_command_strings()
2191 target = member->body.member.library; in build_command_strings()
2196 if (target->has_target_prop) { in build_command_strings()
2197 target = get_prop(target->prop, target_prop)-> in build_command_strings()
2198 body.target.target; in build_command_strings()
2201 tmp_name = target; in build_command_strings()
2405 target->string_mb, in build_command_strings()
2416 target->string_mb, in build_command_strings()
2441 target->string_mb); in build_command_strings()
2456 target->string_mb); in build_command_strings()
2476 target->conditional_macro_list = cond_macro_list; in build_command_strings()
2478 target->depends_on_conditional = true; in build_command_strings()
2501 touch_command(register Property line, register Name target, Doname result) in touch_command() argument
2510 for (name = target, target_group = NULL; name != NULL;) { in touch_command()
2584 Name target; in update_target() local
2602 target = line->body.line.target; in update_target()
2607 (target->is_member && in update_target()
2613 target->stat.time = file_max_time; in update_target()
2623 old_stat_time = target->stat.time; in update_target()
2624 target->stat.time = file_no_time; in update_target()
2625 (void) exists(target); in update_target()
2626 if ((target->is_member) && in update_target()
2627 (target->stat.time == old_stat_time)) { in update_target()
2628 member = get_prop(target->prop, member_prop); in update_target()
2630 target->stat.time = member->body.member.library->stat.time; in update_target()
2631 target->stat.time.tv_sec++; in update_target()
2640 target_group->name->stat.time = target->stat.time; in update_target()
2645 line2->body.line.target = target_group->name; in update_target()
2648 target->has_built = true; in update_target()
2670 sccs_get(register Name target, register Property *command) in sccs_get() argument
2682 while (target->stat.is_sym_link) { in sccs_get()
2685 target->string_mb); in sccs_get()
2688 result = readlink_vroot(target->string_mb, in sccs_get()
2695 target->string_mb, errmsg(errno)); in sccs_get()
2701 Wstring wcb(target); in sccs_get()
2708 target = normalize_name(string.buffer.start, string.text.p - string.buffer.start); in sccs_get()
2709 (void) exists(target); in sccs_get()
2719 if (target->stat.has_sccs == DONT_KNOW_SCCS) { in sccs_get()
2720 read_directory_of_file(target); in sccs_get()
2722 switch (target->stat.has_sccs) { in sccs_get()
2725 target->stat.has_sccs = NO_SCCS; in sccs_get()
2731 if (target->stat.time > file_doesnt_exist) { in sccs_get()
2741 sccs_time = exists(get_prop(target->prop, in sccs_get()
2746 if ((!target->has_complained && in sccs_get()
2757 line = maybe_append_prop(target, line_prop); in sccs_get()
2759 if (sccs_time > target->stat.time) { in sccs_get()
2769 target->string_mb); in sccs_get()
2775 if((target->prop) && in sccs_get()
2776 (target->prop->body.sccs.file) && in sccs_get()
2777 (target->prop->body.sccs.file->string_mb)) { in sccs_get()
2778 if((strlen(target->prop->body.sccs.file->string_mb) == in sccs_get()
2779 strlen(target->string_mb) + 2) && in sccs_get()
2780 (target->prop->body.sccs.file->string_mb[0] == 's') && in sccs_get()
2781 (target->prop->body.sccs.file->string_mb[1] == '.')) { in sccs_get()
2787 line->body.line.target = target; in sccs_get()
2876 add_pattern_conditionals(register Name target) in add_pattern_conditionals() argument
2886 Wstring wcb(target); in add_pattern_conditionals()
2892 wcb1.init(conditional->body.conditional.target); in add_pattern_conditionals()
2901 for (previous = &target->prop; in add_pattern_conditionals()
2911 new_prop = append_prop(target, conditional_prop); in add_pattern_conditionals()
2918 target->conditional_cnt++; in add_pattern_conditionals()
2939 set_locals(register Name target, register Property old_locals) in set_locals() argument
2947 if (target->dont_activate_cond_values) { in set_locals()
2954 for (conditional = get_prop(target->prop, conditional_prop), i = 0; in set_locals()
2980 cond_chain->name = target; in set_locals()
3001 reset_locals(register Name target, register Property old_locals, register Property conditional, reg… in reset_locals() argument
3006 if (target->dont_activate_cond_values) { in reset_locals()
3014 reset_locals(target, old_locals, this_conditional, index+1); in reset_locals()
3018 conditional_targets->name != target) { in reset_locals()
3068 check_auto_dependencies(Name target, int auto_count, Name *automatics) in check_auto_dependencies() argument
3076 if ((line = get_prop(target->prop, line_prop)) == NULL) { in check_auto_dependencies()
3124 target_can_be_built(register Name target) { in target_can_be_built() argument
3126 Name true_target = target; in target_can_be_built()
3129 if (target == wait_name) { in target_can_be_built()
3136 if (target->has_target_prop) { in target_can_be_built()
3137 true_target = get_prop(target->prop, in target_can_be_built()
3138 target_prop)->body.target.target; in target_can_be_built()
3159 result = find_percent_rule(target, NULL, false); in target_can_be_built()
3164 if (target->is_member) { in target_can_be_built()
3165 Property member = get_prop(target->prop, member_prop); in target_can_be_built()
3167 result = find_ar_suffix_rule(target, member->body.member.member, NULL, false); in target_can_be_built()
3169 result = find_double_suffix_rule(target, NULL, false); in target_can_be_built()
3172 result = find_double_suffix_rule(target, NULL, false); in target_can_be_built()
3178 result = find_suffix_rule(target, target, empty_name, NULL, false); in target_can_be_built()
3183 result = sccs_get(target, NULL); in target_can_be_built()
3188 Name dtarg = find_dyntarget(target); in target_can_be_built()
3196 if (target->colons != no_colon) { in target_can_be_built()