(command.CommandList children: [ (command.ShFunction name: _make_target_extract_script body: (BraceGroup children: [ (C {<local>} {<Id.Lit_VarLike 'mode='> (DQ ($ Id.VSub_Number '$1'))}) (C {<shift>}) (C {<local>} {<Id.Lit_VarLike 'prefix='> (DQ ($ Id.VSub_Number '$1'))}) (C {<local>} {<Id.Lit_VarLike 'prefix_pat='> (command_sub left_token: <Id.Left_DollarParen '$('> child: (command.Pipeline children: [ (C {<printf>} {(DQ <'%s'> <Id.Lit_BadBackslash '\\'> <n>)} {(DQ ($ Id.VSub_DollarName '$prefix'))} ) (C {<sed>} {(SQ <'s/[][\\,.*^$(){}?+|/]/\\\\&/g'>)}) ] negated: F ) ) } ) (C {<local>} {<Id.Lit_VarLike 'basename='> (braced_var_sub token: <Id.VSub_Name prefix> suffix_op: (suffix_op.Unary tok: <Id.VOp1_DPound '##'> arg_word: {<Id.Lit_Other '*'> <Id.Lit_Slash '/'>} ) ) } ) (C {<local>} {<Id.Lit_VarLike 'dirname_len='> (word_part.ArithSub anode: (arith_expr.Binary op_id: Id.Arith_Minus left: {(braced_var_sub token:<Id.VSub_Name prefix> prefix_op:(Id.VSub_Pound))} right: {(braced_var_sub token:<Id.VSub_Name basename> prefix_op:(Id.VSub_Pound))} ) ) } ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: {($ Id.VSub_DollarName '$mode')} right: {<Id.BoolUnary_d -d>} ) ) terminator: <Id.Op_Semi _> ) ] ) action: [ (C {<local>} {<Id.Lit_VarLike 'output='> (DQ <Id.Lit_BadBackslash '\\'> <2>)}) ] spids: [96 109] ) ] else_action: [ (C {<local>} {<Id.Lit_VarLike 'output='> (DQ <Id.Lit_BadBackslash '\\'> <1> <Id.Lit_BadBackslash '\\'> <2>) } ) ] ) (command.Simple words: [{<cat>}] redirects: [ (redir op: <Id.Redir_DLess '<<'> loc: (redir_loc.Fd fd:0) arg: (redir_param.HereDoc here_begin: {<EOF>} here_end_span_id: 285 stdin_parts: [ < ' 1,/^# * Make data base/ d; # skip any makefile output\n' > <' /^# * Finished Make data base/,/^# * Make data base/{\n'> < ' d; # skip any makefile output\n' > <' }\n'> < ' /^# * Variables/,/^# * Files/ d; # skip until files section\n' > <' /^# * Not a target/,/^'> <Id.Lit_Dollar '$'> <'/ d; # skip not target blocks\n'> <' /^'> (${ Id.VSub_Name prefix_pat) <'/,/^'> <Id.Lit_Dollar '$'> <'/! d; # skip anything user dont want\n'> <'\n'> <' # The stuff above here describes lines that are not\n'> <' # explicit targets or not targets other than special ones\n'> <' # The stuff below here decides whether an explicit target\n'> <' # should be output.\n'> <'\n'> <' /^# * File is an intermediate prerequisite/ {\n'> <' s/^.*'> <Id.Lit_Dollar '$'> <'//;x; # unhold target\n'> <' d; # delete line\n'> <' }\n'> <'\n'> <' /^'> <Id.Lit_Dollar '$'> <'/ { # end of target block\n'> <' x; # unhold target\n'> <' /^'> <Id.Lit_Dollar '$'> <'/d; # dont print blanks\n'> <' s|^'> <Id.Lit_BadBackslash '\\'> <'(.'> <Id.Lit_BadBackslash '\\'> <'{'> (${ Id.VSub_Name dirname_len) <Id.Lit_BadBackslash '\\'> <'}'> <Id.Lit_BadBackslash '\\'> <')'> <Id.Lit_BadBackslash '\\'> <'(.'> <Id.Lit_BadBackslash '\\'> <'{'> (braced_var_sub token: <Id.VSub_Name basename> prefix_op: (Id.VSub_Pound) ) <Id.Lit_BadBackslash '\\'> <'}[^:/]*/'> <Id.Lit_BadBackslash '\\'> <'{0,1'> <Id.Lit_BadBackslash '\\'> <'}'> <Id.Lit_BadBackslash '\\'> <')[^:]*:.*'> <Id.Lit_Dollar '$'> <'|'> (${ Id.VSub_Name output) <'|p;\n'> <' d; # hide any bugs\n'> <' }\n'> <'\n'> <' # This pattern includes a literal tab character as '> <Id.Lit_BadBackslash '\\'> <'t is not a portable\n'> <' # representation and fails with BSD sed\n'> <' /^[^#\t:%]'> <Id.Lit_BadBackslash '\\'> <'{1,'> <Id.Lit_BadBackslash '\\'> <'}:/ { # found target block\n'> <' /^'> <Id.Lit_BadBackslash '\\'> <'.PHONY:/ d; # special target\n'> <' /^'> <Id.Lit_BadBackslash '\\'> <'.SUFFIXES:/ d; # special target\n'> <' /^'> <Id.Lit_BadBackslash '\\'> <'.DEFAULT:/ d; # special target\n'> <' /^'> <Id.Lit_BadBackslash '\\'> <'.PRECIOUS:/ d; # special target\n'> <' /^'> <Id.Lit_BadBackslash '\\'> <'.INTERMEDIATE:/ d; # special target\n'> <' /^'> <Id.Lit_BadBackslash '\\'> <'.SECONDARY:/ d; # special target\n'> <' /^'> <Id.Lit_BadBackslash '\\'> <'.SECONDEXPANSION:/ d; # special target\n'> <' /^'> <Id.Lit_BadBackslash '\\'> <'.DELETE_ON_ERROR:/ d; # special target\n'> <' /^'> <Id.Lit_BadBackslash '\\'> <'.IGNORE:/ d; # special target\n'> <' /^'> <Id.Lit_BadBackslash '\\'> <'.LOW_RESOLUTION_TIME:/ d; # special target\n'> <' /^'> <Id.Lit_BadBackslash '\\'> <'.SILENT:/ d; # special target\n'> <' /^'> <Id.Lit_BadBackslash '\\'> <'.EXPORT_ALL_VARIABLES:/ d; # special target\n'> <' /^'> <Id.Lit_BadBackslash '\\'> <'.NOTPARALLEL:/ d; # special target\n'> <' /^'> <Id.Lit_BadBackslash '\\'> <'.ONESHELL:/ d; # special target\n'> <' /^'> <Id.Lit_BadBackslash '\\'> <'.POSIX:/ d; # special target\n'> <' /^'> <Id.Lit_BadBackslash '\\'> <'.NOEXPORT:/ d; # special target\n'> <' /^'> <Id.Lit_BadBackslash '\\'> <'.MAKE:/ d; # special target\n'> ] ) ) ] do_fork: T ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (command.DBracket expr: (bool_expr.LogicalOr left: (bool_expr.Unary op_id: Id.BoolUnary_z child: {(DQ (${ Id.VSub_Name prefix_pat))} ) right: (bool_expr.Binary op_id: Id.BoolBinary_GlobEqual left: {(DQ (${ Id.VSub_Name prefix_pat))} right: {<Id.Lit_Other '*'> <'/'>} ) ) ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.Simple words: [{<cat>}] redirects: [ (redir op: <Id.Redir_DLess '<<'> loc: (redir_loc.Fd fd:0) arg: (redir_param.HereDoc here_begin: {<EOF>} here_end_span_id: 334 stdin_parts: [ <' /^'> (${ Id.VSub_Name prefix_pat) <'[^a-zA-Z0-9]/d # convention for hidden tgt\n'> ] ) ) ] do_fork: T ) ] spids: [292 320] ) ] ) (command.Simple words: [{<cat>}] redirects: [ (redir op: <Id.Redir_DLess '<<'> loc: (redir_loc.Fd fd:0) arg: (redir_param.HereDoc here_begin: {<EOF>} here_end_span_id: 350 stdin_parts: [ <' h; # hold target\n'> <' d; # delete line\n'> <' }\n'> <'\n'> ] ) ) ] do_fork: T ) ] ) ) (command.AndOr ops: [Id.Op_DAmp] children: [ (command.ShFunction name: _make body: (BraceGroup children: [ (C {<local>} {<cur>} {<prev>} {<words>} {<cword>} {<split>}) (command.AndOr ops: [Id.Op_DPipe] children: [ (C {<_init_completion>} {<-s>}) (command.ControlFlow token:<Id.ControlFlow_Return return>) ] ) (C {<local>} {<file>} {<makef>} {<Id.Lit_VarLike 'makef_dir='> (sh_array_literal left: <Id.Op_LParen _> words: [{(DQ <-C>)} {(DQ <.>)}] ) } {<makef_inc>} {<i>} ) (command.Case to_match: {($ Id.VSub_DollarName '$prev')} arms: [ (case_arm pat_list: [ {<-f>} {<--file>} {<--makefile>} {<-o>} {<--old-file>} {<--assume-old>} {<-W>} {<--what-if>} {<--new-file>} {<--assume-new>} ] action: [ (C {<_filedir>}) (command.ControlFlow token: <Id.ControlFlow_Return return> arg_word: {<0>} ) ] spids: [416 437 448 -1] ) (case_arm pat_list: [{<-I>} {<--include-dir>} {<-C>} {<--directory>} {<-m>}] action: [ (C {<_filedir>} {<-d>}) (command.ControlFlow token: <Id.ControlFlow_Return return> arg_word: {<0>} ) ] spids: [451 460 473 -1] ) (case_arm pat_list: [{<-E>}] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: <Id.Op_LParen _> words: [ { (command_sub left_token: <Id.Left_DollarParen '$('> child: (C {<compgen>} {<-v>} {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ) } ] ) } spids: [480] ) ] ) (command.ControlFlow token: <Id.ControlFlow_Return return> arg_word: {<0>} ) ] spids: [476 477 505 -1] ) (case_arm pat_list: [{<--eval>} {<-D>} {<-V>} {<-x>}] action: [ (command.ControlFlow token: <Id.ControlFlow_Return return> arg_word: {<0>} ) ] spids: [508 515 523 -1] ) (case_arm pat_list: [{<--jobs>} {<-j>}] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: <Id.Op_LParen _> words: [ { (command_sub left_token: <Id.Left_DollarParen '$('> child: (C {<compgen>} {<-W>} { (DQ <'{1..'> (word_part.ArithSub anode: (arith_expr.Binary op_id: Id.Arith_Star left: { (command_sub left_token: <Id.Left_DollarParen '$('> child: (C {<_ncpus>}) ) } right: {<Id.Lit_Digits 2>} ) ) <'}'> ) } {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ) } ] ) } spids: [532] ) ] ) (command.ControlFlow token: <Id.ControlFlow_Return return> arg_word: {<0>} ) ] spids: [526 529 572 -1] ) ] ) (command.AndOr ops: [Id.Op_DAmp] children: [ (C {($ Id.VSub_DollarName '$split')}) (command.ControlFlow token: <Id.ControlFlow_Return return> arg_word: {<0>} ) ] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: {(DQ ($ Id.VSub_DollarName '$cur'))} right: {<-> <Id.Lit_Other '*'>} ) ) terminator: <Id.Op_Semi _> ) ] ) action: [ (C {<local>} {<Id.Lit_VarLike 'opts='> (DQ (command_sub left_token: <Id.Left_DollarParen '$('> child: (C {<_parse_help>} {(DQ ($ Id.VSub_Number '$1'))}) ) ) } ) (command.AndOr ops: [Id.Op_DPipe] children: [ (command.DBracket expr: (bool_expr.WordTest w:{($ Id.VSub_DollarName '$opts')}) ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:opts) op: assign_op.Equal rhs: { (DQ (command_sub left_token: <Id.Left_DollarParen '$('> child: (C {<_parse_usage>} {(DQ ($ Id.VSub_Number '$1'))}) ) ) } spids: [632] ) ] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: <Id.Op_LParen _> words: [ { (command_sub left_token: <Id.Left_DollarParen '$('> child: (C {<compgen>} {<-W>} {(DQ ($ Id.VSub_DollarName '$opts'))} {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ) } ] ) } spids: [646] ) ] ) (command.AndOr ops: [Id.Op_DAmp] children: [ (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: {($ Id.VSub_DollarName '$COMPREPLY')} right: {<Id.Lit_Other '*'> <Id.BoolBinary_GlobEqual '='>} ) ) (C {<compopt>} {<-o>} {<nospace>}) ] ) ] spids: [589 605] ) (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: {($ Id.VSub_DollarName '$cur')} right: {<Id.Lit_Other '*'> <Id.BoolBinary_GlobEqual '='> <Id.Lit_Other '*'> } ) ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:prev) op: assign_op.Equal rhs: { (braced_var_sub token: <Id.VSub_Name cur> suffix_op: (suffix_op.Unary tok: <Id.VOp1_DPercent '%%'> arg_word: {<'='> <Id.Lit_Other '*'>} ) ) } spids: [708] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:cur) op: assign_op.Equal rhs: { (braced_var_sub token: <Id.VSub_Name cur> suffix_op: (suffix_op.Unary tok: <Id.VOp1_Pound '#'> arg_word: {<Id.Lit_Other '*'> <'='>} ) ) } spids: [717] ) ] ) (C {<local>} {<diropt>}) (command.AndOr ops: [Id.Op_DAmp] children: [ (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: { (braced_var_sub token: <Id.VSub_Name prev> suffix_op: (suffix_op.Unary tok:<Id.VOp1_DComma ',,'> arg_word:{}) ) } right: {<Id.Lit_Other '*'> <dir> (word_part.ExtGlob op: <Id.ExtGlob_QMark '?('> arms: [{<ectory>}] ) } ) ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:diropt) op: assign_op.Equal rhs: {<-d>} spids: [750] ) ] ) ] ) (C {<_filedir>} {($ Id.VSub_DollarName '$diropt')}) ] spids: [690 705] ) ] else_action: [ (command.ForExpr init: (arith_expr.BinaryAssign op_id: Id.Arith_Equal left: <Id.Lit_ArithVarLike i> right: {<Id.Lit_Digits 0>} ) cond: (arith_expr.Binary op_id: Id.Arith_Less left: <Id.Lit_ArithVarLike i> right: { (braced_var_sub token: <Id.VSub_Name words> prefix_op: (Id.VSub_Pound) bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At) ) } ) update: (arith_expr.UnaryAssign op_id: Id.Node_PostDPlus child: <Id.Lit_ArithVarLike i> ) body: (command.DoGroup children: [ (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: { (braced_var_sub token: <Id.VSub_Name words> bracket_op: (bracket_op.ArrayIndex expr: <Id.Lit_ArithVarLike i> ) ) } right: {<-> (word_part.ExtGlob op: <Id.ExtGlob_At '@('> arms: [{<C>} {<-directory>}] ) } ) ) terminator: <Id.Op_Semi _> ) ] ) action: [ (C {<eval>} {<Id.Lit_VarLike 'makef_dir='> (sh_array_literal left: <Id.Op_LParen _> words: [ {<-C>} { (DQ (braced_var_sub token: <Id.VSub_Name words> bracket_op: (bracket_op.ArrayIndex expr: (arith_expr.Binary op_id: Id.Arith_Plus left: <Id.Lit_ArithVarLike i> right: {<Id.Lit_Digits 1>} ) ) ) ) } ] ) } ) (command.ControlFlow token: <Id.ControlFlow_Break break> ) ] spids: [802 825] ) ] ) ] ) ) (command.ForExpr init: (arith_expr.BinaryAssign op_id: Id.Arith_Equal left: <Id.Lit_ArithVarLike i> right: {<Id.Lit_Digits 0>} ) cond: (arith_expr.Binary op_id: Id.Arith_Less left: <Id.Lit_ArithVarLike i> right: { (braced_var_sub token: <Id.VSub_Name words> prefix_op: (Id.VSub_Pound) bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At) ) } ) update: (arith_expr.UnaryAssign op_id: Id.Node_PostDPlus child: <Id.Lit_ArithVarLike i> ) body: (command.DoGroup children: [ (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: { (braced_var_sub token: <Id.VSub_Name words> bracket_op: (bracket_op.ArrayIndex expr: <Id.Lit_ArithVarLike i> ) ) } right: {<-> (word_part.ExtGlob op: <Id.ExtGlob_At '@('> arms: [ {<f>} {<-> (word_part.ExtGlob op: <Id.ExtGlob_QMark '?('> arms: [{<make>}] ) <file> } ] ) } ) ) terminator: <Id.Op_Semi _> ) ] ) action: [ (C {<eval>} {<Id.Lit_VarLike 'makef='> (sh_array_literal left: <Id.Op_LParen _> words: [ {<-f>} { (DQ (braced_var_sub token: <Id.VSub_Name words> bracket_op: (bracket_op.ArrayIndex expr: (arith_expr.Binary op_id: Id.Arith_Plus left: <Id.Lit_ArithVarLike i> right: {<Id.Lit_Digits 1>} ) ) ) ) } ] ) } ) (command.ControlFlow token: <Id.ControlFlow_Break break> ) ] spids: [903 930] ) ] ) ] ) ) (C {<local>} {<Id.Lit_VarLike 'mode='> <-->}) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (command.DParen child: (arith_expr.Binary op_id: Id.Arith_NEqual left: <Id.Lit_ArithVarLike COMP_TYPE> right: {<Id.Lit_Digits 9>} ) ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:mode) op: assign_op.Equal rhs: {<-d>} spids: [999] ) ] ) ] spids: [982 996] ) ] ) (command.Sentence child: (C {<local>} {<Id.Lit_VarLike 'reset='> (command_sub left_token: <Id.Left_DollarParen '$('> child: (command.Pipeline children: [ (C {<set>} {<Id.Lit_Other '+'> <o>}) (C {<command>} {<grep>} {<-F>} {<posix>}) ] negated: F ) ) } ) terminator: <Id.Op_Semi _> ) (C {<set>} {<Id.Lit_Other '+'> <o>} {<posix>}) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: <Id.Op_LParen _> words: [ { (command_sub left_token: <Id.Left_DollarParen '$('> child: (command.Pipeline children: [ (command.Simple words: [ {<make>} {<-npq>} {<Id.Lit_VarLike '__BASH_MAKE_COMPLETION__='> <1>} { (DQ (braced_var_sub token: <Id.VSub_Name makef> bracket_op: (bracket_op.WholeArray op_id: Id.Lit_At ) ) ) } { (DQ (braced_var_sub token: <Id.VSub_Name makef_dir> bracket_op: (bracket_op.WholeArray op_id: Id.Lit_At ) ) ) } {<.DEFAULT>} ] redirects: [ (redir op: <Id.Redir_Great '2>'> loc: (redir_loc.Fd fd:2) arg: {<'/dev/null'>} ) ] more_env: [ (env_pair name: LC_ALL val: {<C>} spids: [1049] ) ] do_fork: T ) (C {<sed>} {<-nf>} { (command_sub left_token: <Id.Left_ProcSubIn '<('> child: (C {<_make_target_extract_script>} {($ Id.VSub_DollarName '$mode')} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ) } ) ] negated: F ) ) } ] ) } spids: [1044] ) ] ) (C {($ Id.VSub_DollarName '$reset')}) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobNEqual left: {($ Id.VSub_DollarName '$mode')} right: {<Id.BoolUnary_d -d>} ) ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.AndOr ops: [Id.Op_DAmp] children: [ (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: {($ Id.VSub_DollarName '$COMPREPLY')} right: {<Id.Lit_Other '*'> <'/'>} ) ) (C {<compopt>} {<-o>} {<nospace>}) ] ) ] spids: [1113 1126] ) ] ) ] ) ] ) ) (C {<complete>} {<-F>} {<_make>} {<make>} {<gmake>} {<gnumake>} {<pmake>} {<colormake>}) ] ) ] )