| 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 config.ml) |
| 17 |
(mode fallback) |
| 18 |
(deps config.generated.ml config.common.ml) |
| 19 |
(action |
| 20 |
(with-stdout-to %{targets} |
| 21 |
(system "cat %{deps}")))) |
| 22 |
|
| 23 |
(rule |
| 24 |
(targets domainstate.ml) |
| 25 |
(mode fallback) |
| 26 |
(deps (:conf ../Makefile.config) |
| 27 |
(:c domainstate.ml.c) |
| 28 |
(:tbl ../runtime/caml/domain_state.tbl)) |
| 29 |
(action |
| 30 |
(with-stdout-to %{targets} |
| 31 |
(bash |
| 32 |
"`grep '^CPP=' %{conf} | cut -d'=' -f2` -I ../runtime/caml %{c}" |
| 33 |
)))) |
| 34 |
|
| 35 |
(rule |
| 36 |
(targets domainstate.mli) |
| 37 |
(mode fallback) |
| 38 |
(deps (:conf ../Makefile.config) |
| 39 |
(:c domainstate.mli.c) |
| 40 |
(:tbl ../runtime/caml/domain_state.tbl)) |
| 41 |
(action |
| 42 |
(with-stdout-to %{targets} |
| 43 |
(bash |
| 44 |
"`grep '^CPP=' %{conf} | cut -d'=' -f2` -I ../runtime/caml %{c}" |
| 45 |
)))) |