2018-10-10 08:16:00 -07:00
|
|
|
;**************************************************************************
|
|
|
|
;* *
|
|
|
|
;* OCaml *
|
|
|
|
;* *
|
|
|
|
;* Thomas Refis, Jane Street Europe *
|
|
|
|
;* *
|
|
|
|
;* Copyright 2018 Jane Street Group LLC *
|
|
|
|
;* *
|
|
|
|
;* All rights reserved. This file is distributed under the terms of *
|
|
|
|
;* the GNU Lesser General Public License version 2.1, with the *
|
|
|
|
;* special exception on linking described in the file LICENSE. *
|
|
|
|
;* *
|
|
|
|
;**************************************************************************
|
|
|
|
|
|
|
|
(rule
|
|
|
|
(targets config.ml)
|
|
|
|
(mode fallback)
|
|
|
|
(deps (:mk Makefile)
|
|
|
|
../Makefile.config
|
2020-05-03 01:04:34 -07:00
|
|
|
; for now the utils Makefile does not use build_config
|
2018-10-10 08:16:00 -07:00
|
|
|
config.mlp)
|
|
|
|
(action (system "make -f %{mk} %{targets}")))
|
2019-08-28 06:36:07 -07:00
|
|
|
|
|
|
|
(rule
|
|
|
|
(targets domainstate.ml)
|
|
|
|
(mode fallback)
|
|
|
|
(deps (:conf ../Makefile.config)
|
|
|
|
(:c domainstate.ml.c)
|
|
|
|
(:tbl ../runtime/caml/domain_state.tbl))
|
|
|
|
(action
|
|
|
|
(with-stdout-to %{targets}
|
|
|
|
(bash
|
2019-08-28 07:32:57 -07:00
|
|
|
"`grep '^CPP=' %{conf} | cut -d'=' -f2` -I ../runtime/caml %{c} %{tbl}"
|
|
|
|
))))
|
2019-08-28 06:36:07 -07:00
|
|
|
|
|
|
|
(rule
|
|
|
|
(targets domainstate.mli)
|
|
|
|
(mode fallback)
|
|
|
|
(deps (:conf ../Makefile.config)
|
|
|
|
(:c domainstate.mli.c)
|
|
|
|
(:tbl ../runtime/caml/domain_state.tbl))
|
|
|
|
(action
|
|
|
|
(with-stdout-to %{targets}
|
|
|
|
(bash
|
2019-08-28 07:32:57 -07:00
|
|
|
"`grep '^CPP=' %{conf} | cut -d'=' -f2` -I ../runtime/caml %{c} %{tbl}"
|
|
|
|
))))
|