| 1 |
;************************************************************************** |
| 2 |
;* * |
| 3 |
;* OCaml * |
| 4 |
;* * |
| 5 |
;* Thomas Refis, Jane Street Europe * |
| 6 |
;* * |
| 7 |
;* Copyright 2018 Jane Street Group LLC * |
| 8 |
;* * |
| 9 |
;* All rights reserved. This file is distributed under the terms of * |
| 10 |
;* the GNU Lesser General Public License version 2.1, with the * |
| 11 |
;* special exception on linking described in the file LICENSE. * |
| 12 |
;* * |
| 13 |
;************************************************************************** |
| 14 |
|
| 15 |
(rule |
| 16 |
(targets jumptbl.h) |
| 17 |
(mode fallback) |
| 18 |
(deps (:h instruct.h)) |
| 19 |
(action |
| 20 |
(with-stdout-to %{targets} |
| 21 |
(bash "cat %{h} | tr -d '\\r' | \ |
| 22 |
sed -n -e '/^ /s/ \\([A-Z]\\)/ \\&\\&lbl_\\1/gp' -e '/^}/q'")))) |
| 23 |
|
| 24 |
(rule |
| 25 |
(targets version.h) |
| 26 |
(mode fallback) |
| 27 |
(action |
| 28 |
(with-stdout-to %{targets} |
| 29 |
(run %{dep:../../tools/make-version-header.sh} %{dep:../../VERSION})))) |