|
90 | 90 | (diff err_stdin_no_kind.expected err_stdin_no_kind.output)))
|
91 | 91 |
|
92 | 92 | (rule
|
93 |
| - (with-outputs-to |
94 |
| - stdin_and_impl.output |
95 |
| - (system "%{bin:ocamlformat} --impl - < %{dep:sample/b.ml}"))) |
| 93 | + (targets stdin_and_impl.output) |
| 94 | + (deps .ocamlformat) |
| 95 | + (action |
| 96 | + (with-outputs-to |
| 97 | + %{targets} |
| 98 | + (system "%{bin:ocamlformat} --root=. --impl - < %{dep:sample/b.ml}")))) |
96 | 99 |
|
97 | 100 | (alias
|
98 | 101 | (name runtest)
|
99 | 102 | (action
|
100 | 103 | (diff stdin_and_impl.expected stdin_and_impl.output)))
|
101 | 104 |
|
102 | 105 | (rule
|
103 |
| - (with-outputs-to |
104 |
| - stdin_and_intf.output |
105 |
| - (system "%{bin:ocamlformat} --intf - < %{dep:sample/a.mli}"))) |
| 106 | + (targets stdin_and_intf.output) |
| 107 | + (deps .ocamlformat) |
| 108 | + (action |
| 109 | + (with-outputs-to |
| 110 | + %{targets} |
| 111 | + (system "%{bin:ocamlformat} --root=. --intf - < %{dep:sample/a.mli}")))) |
106 | 112 |
|
107 | 113 | (alias
|
108 | 114 | (name runtest)
|
109 | 115 | (action
|
110 | 116 | (diff stdin_and_intf.expected stdin_and_intf.output)))
|
111 | 117 |
|
112 | 118 | (rule
|
113 |
| - (with-outputs-to |
114 |
| - stdin_and_name.output |
115 |
| - (system "%{bin:ocamlformat} --name a.ml - < %{dep:sample/b.ml}"))) |
| 119 | + (targets stdin_and_name.output) |
| 120 | + (deps .ocamlformat) |
| 121 | + (action |
| 122 | + (with-outputs-to |
| 123 | + %{targets} |
| 124 | + (system "%{bin:ocamlformat} --root=. --name a.ml - < %{dep:sample/b.ml}")))) |
116 | 125 |
|
117 | 126 | (alias
|
118 | 127 | (name runtest)
|
119 | 128 | (action
|
120 | 129 | (diff stdin_and_name.expected stdin_and_name.output)))
|
121 | 130 |
|
122 | 131 | (rule
|
123 |
| - (with-outputs-to |
124 |
| - name_unknown_ext.output |
125 |
| - (system "%{bin:ocamlformat} --name b.cpp %{dep:sample/b.ml}"))) |
| 132 | + (targets name_unknown_ext.output) |
| 133 | + (deps .ocamlformat) |
| 134 | + (action |
| 135 | + (with-outputs-to |
| 136 | + %{targets} |
| 137 | + (system "%{bin:ocamlformat} --root=. --name b.cpp %{dep:sample/b.ml}")))) |
126 | 138 |
|
127 | 139 | (alias
|
128 | 140 | (name runtest)
|
|
186 | 198 | err_several_files_and_name_inplace.output)))
|
187 | 199 |
|
188 | 200 | (rule
|
189 |
| - (with-outputs-to |
190 |
| - fmterr_file_and_name.output |
191 |
| - (system "! %{bin:ocamlformat} --name foo.ml %{dep:sample/syntax_error.ml}"))) |
| 201 | + (targets fmterr_file_and_name.output) |
| 202 | + (deps .ocamlformat) |
| 203 | + (action |
| 204 | + (with-outputs-to |
| 205 | + %{targets} |
| 206 | + (system "! %{bin:ocamlformat} --root=. --name foo.ml %{dep:sample/syntax_error.ml}")))) |
192 | 207 |
|
193 | 208 | (alias
|
194 | 209 | (name runtest)
|
195 | 210 | (action
|
196 | 211 | (diff fmterr_file_and_name.expected fmterr_file_and_name.output)))
|
197 | 212 |
|
198 | 213 | (rule
|
199 |
| - (with-outputs-to |
200 |
| - fmterr_stdin_and_name.output |
201 |
| - (system |
202 |
| - "! %{bin:ocamlformat} --name foo.ml - < %{dep:sample/syntax_error.ml}"))) |
| 214 | + (targets fmterr_stdin_and_name.output) |
| 215 | + (deps .ocamlformat) |
| 216 | + (action |
| 217 | + (with-outputs-to |
| 218 | + %{targets} |
| 219 | + (system |
| 220 | + "! %{bin:ocamlformat} --root=. --name foo.ml - < %{dep:sample/syntax_error.ml}")))) |
203 | 221 |
|
204 | 222 | (alias
|
205 | 223 | (name runtest)
|
206 | 224 | (action
|
207 | 225 | (diff fmterr_stdin_and_name.expected fmterr_stdin_and_name.output)))
|
208 | 226 |
|
209 | 227 | (rule
|
210 |
| - (with-outputs-to |
211 |
| - fmterr_file_bad_kind.output |
212 |
| - (system "! %{bin:ocamlformat} --impl %{dep:sample/a.mli}"))) |
| 228 | + (targets fmterr_file_bad_kind.output) |
| 229 | + (deps .ocamlformat) |
| 230 | + (action |
| 231 | + (with-outputs-to |
| 232 | + %{targets} |
| 233 | + (system "! %{bin:ocamlformat} --root=. --impl %{dep:sample/a.mli}")))) |
213 | 234 |
|
214 | 235 | (alias
|
215 | 236 | (name runtest)
|
216 | 237 | (action
|
217 | 238 | (diff fmterr_file_bad_kind.expected fmterr_file_bad_kind.output)))
|
218 | 239 |
|
219 | 240 | (rule
|
220 |
| - (with-outputs-to |
221 |
| - fmterr_stdin_bad_kind.output |
222 |
| - (system "! %{bin:ocamlformat} --impl - < %{dep:sample/a.mli}"))) |
| 241 | + (targets fmterr_stdin_bad_kind.output) |
| 242 | + (deps .ocamlformat) |
| 243 | + (action |
| 244 | + (with-outputs-to |
| 245 | + %{targets} |
| 246 | + (system "! %{bin:ocamlformat} --root=. --impl - < %{dep:sample/a.mli}")))) |
223 | 247 |
|
224 | 248 | (alias
|
225 | 249 | (name runtest)
|
226 | 250 | (action
|
227 | 251 | (diff fmterr_stdin_bad_kind.expected fmterr_stdin_bad_kind.output)))
|
228 | 252 |
|
229 | 253 | (rule
|
230 |
| - (with-outputs-to |
231 |
| - fmterr_file_and_name_bad_kind.output |
232 |
| - (system "! %{bin:ocamlformat} --name foo.ml %{dep:sample/a.mli}"))) |
| 254 | + (targets fmterr_file_and_name_bad_kind.output) |
| 255 | + (deps .ocamlformat) |
| 256 | + (action |
| 257 | + (with-outputs-to |
| 258 | + %{targets} |
| 259 | + (system "! %{bin:ocamlformat} --root=. --name foo.ml %{dep:sample/a.mli}")))) |
233 | 260 |
|
234 | 261 | (alias
|
235 | 262 | (name runtest)
|
|
238 | 265 | fmterr_file_and_name_bad_kind.output)))
|
239 | 266 |
|
240 | 267 | (rule
|
241 |
| - (with-outputs-to |
242 |
| - fmterr_stdin_and_name_bad_kind.output |
243 |
| - (system "! %{bin:ocamlformat} --name foo.ml - < %{dep:sample/a.mli}"))) |
| 268 | + (targets fmterr_stdin_and_name_bad_kind.output) |
| 269 | + (deps .ocamlformat) |
| 270 | + (action |
| 271 | + (with-outputs-to |
| 272 | + %{targets} |
| 273 | + (system "! %{bin:ocamlformat} --root=. --name foo.ml - < %{dep:sample/a.mli}")))) |
244 | 274 |
|
245 | 275 | (alias
|
246 | 276 | (name runtest)
|
|
249 | 279 | fmterr_stdin_and_name_bad_kind.output)))
|
250 | 280 |
|
251 | 281 | (rule
|
252 |
| - (with-outputs-to |
253 |
| - check_formatted.output |
254 |
| - (run %{bin:ocamlformat} --check %{dep:sample/a.ml}))) |
| 282 | + (targets check_formatted.output) |
| 283 | + (deps .ocamlformat) |
| 284 | + (action |
| 285 | + (with-outputs-to |
| 286 | + %{targets} |
| 287 | + (run %{bin:ocamlformat} --root=. --check %{dep:sample/a.ml})))) |
255 | 288 |
|
256 | 289 | (alias
|
257 | 290 | (name runtest)
|
258 | 291 | (action
|
259 | 292 | (diff check_formatted.expected check_formatted.output)))
|
260 | 293 |
|
261 | 294 | (rule
|
262 |
| - (with-outputs-to |
263 |
| - check_not_formatted.output |
264 |
| - (system "! %{bin:ocamlformat} --check %{dep:sample/b.ml}"))) |
| 295 | + (targets check_not_formatted.output) |
| 296 | + (deps .ocamlformat) |
| 297 | + (action |
| 298 | + (with-outputs-to |
| 299 | + %{targets} |
| 300 | + (system "! %{bin:ocamlformat} --root=. --check %{dep:sample/b.ml}")))) |
265 | 301 |
|
266 | 302 | (alias
|
267 | 303 | (name runtest)
|
268 | 304 | (action
|
269 | 305 | (diff check_not_formatted.expected check_not_formatted.output)))
|
270 | 306 |
|
271 | 307 | (rule
|
272 |
| - (with-outputs-to |
273 |
| - debug.output |
274 |
| - (run %{bin:ocamlformat} --debug %{dep:sample/b.ml}))) |
| 308 | + (targets debug.output) |
| 309 | + (deps .ocamlformat) |
| 310 | + (action |
| 311 | + (with-outputs-to |
| 312 | + %{targets} |
| 313 | + (run %{bin:ocamlformat} --root=. --debug %{dep:sample/b.ml})))) |
275 | 314 |
|
276 | 315 | (alias
|
277 | 316 | (name runtest)
|
278 | 317 | (action
|
279 | 318 | (diff debug.expected debug.output)))
|
280 | 319 |
|
281 | 320 | (rule
|
282 |
| - (with-outputs-to |
283 |
| - max_iter_1_ok.output |
284 |
| - (run ocamlformat --max-iters=1 %{dep:sample/a.ml}))) |
| 321 | + (targets max_iter_1_ok.output) |
| 322 | + (deps .ocamlformat) |
| 323 | + (action |
| 324 | + (with-outputs-to |
| 325 | + %{targets} |
| 326 | + (run ocamlformat --root=. --max-iters=1 %{dep:sample/a.ml})))) |
285 | 327 |
|
286 | 328 | (alias
|
287 | 329 | (name runtest)
|
288 | 330 | (action
|
289 | 331 | (diff max_iter_1_ok.expected max_iter_1_ok.output)))
|
290 | 332 |
|
291 | 333 | (rule
|
292 |
| - (with-outputs-to |
293 |
| - max_iter_1_failing.output |
294 |
| - (system "! %{bin:ocamlformat} --max-iters=1 %{dep:sample/b.ml}"))) |
| 334 | + (targets max_iter_1_failing.output) |
| 335 | + (deps .ocamlformat) |
| 336 | + (action |
| 337 | + (with-outputs-to |
| 338 | + %{targets} |
| 339 | + (system "! %{bin:ocamlformat} --root=. --max-iters=1 %{dep:sample/b.ml}")))) |
295 | 340 |
|
296 | 341 | (alias
|
297 | 342 | (name runtest)
|
|
0 commit comments