|
133 | 133 | with_conditional_preprocessing = proc do |command1, command2|
|
134 | 134 | <<-EOF
|
135 | 135 | $(if $(or\\
|
| 136 | + $(and\\ |
| 137 | + $(findstring nokogiri, $(realpath $(<))),\\ |
| 138 | + $(or\\ |
| 139 | + $(findstring xml_node_set.c, $(<)),\\ |
| 140 | + $(findstring xslt_stylesheet.c, $(<)),\\ |
| 141 | + $(findstring xml_document.c, $(<)),\\ |
| 142 | + $(findstring xml_sax_parser.c, $(<)),\\ |
| 143 | + $(findstring xml_xpath_context.c, $(<)))),\\ |
136 | 144 | $(and\\
|
137 |
| - $(findstring nokogiri, $(realpath $(<))),\\ |
138 |
| - $(or\\ |
139 |
| - $(findstring xml_node_set.c, $(<)),\\ |
140 |
| - $(findstring xslt_stylesheet.c, $(<)),\\ |
141 |
| - $(findstring xml_document.c, $(<)),\\ |
142 |
| - $(findstring xml_sax_parser.c, $(<)),\\ |
143 |
| - $(findstring xml_xpath_context.c, $(<)))),\\ |
144 |
| - $(and\\ |
145 |
| - $(findstring pg, $(realpath $(<))),\\ |
146 |
| - $(or\\ |
147 |
| - $(findstring pg_binary_encoder.c, $(<)),\\ |
148 |
| - $(findstring pg_result.c, $(<)),\\ |
149 |
| - $(findstring pg_tuple.c, $(<)),\\ |
150 |
| - $(findstring pg_text_decoder.c, $(<)),\\ |
151 |
| - $(findstring pg_text_encoder.c, $(<)),\\ |
152 |
| - $(findstring pg_type_map_by_class.c, $(<)))),\\ |
153 |
| - $(and\\ |
154 |
| - $(findstring json, $(realpath $(<))),\\ |
155 |
| - $(or\\ |
156 |
| - $(findstring parser.c, $(<))))\\ |
157 |
| -),\\ |
158 |
| - #{preprocess_ruby} #{cext_dir}/preprocess.rb $< | #{command1},\\ |
159 |
| - #{command2}) |
| 145 | + $(findstring pg, $(realpath $(<))),\\ |
| 146 | + $(or\\ |
| 147 | + $(findstring pg_binary_encoder.c, $(<)),\\ |
| 148 | + $(findstring pg_result.c, $(<)),\\ |
| 149 | + $(findstring pg_tuple.c, $(<)),\\ |
| 150 | + $(findstring pg_text_decoder.c, $(<)),\\ |
| 151 | + $(findstring pg_text_encoder.c, $(<)),\\ |
| 152 | + $(findstring pg_type_map_by_class.c, $(<)))),\\ |
| 153 | + $(and\\ |
| 154 | + $(findstring json, $(realpath $(<))),\\ |
| 155 | + $(or\\ |
| 156 | + $(findstring parser.c, $(<))))\\ |
| 157 | + ),\\ |
| 158 | + #{preprocess_ruby} #{cext_dir}/preprocess.rb $< | #{command1},\\ |
| 159 | + #{command2}) |
160 | 160 | EOF
|
161 | 161 | end
|
162 | 162 |
|
|
0 commit comments