-
Notifications
You must be signed in to change notification settings - Fork 77
/
Copy pathdune
27 lines (25 loc) · 1.33 KB
/
dune
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
;**************************************************************************
;* *
;* 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 opcodes.ml)
(mode fallback)
(deps (:instr (file ../%{env:RUNTIME_DIR=runtime-dir-env-var-not-set}/caml/instruct.h)))
(action
(bash "%{dep:../tools/make_opcodes.exe} -opcodes < %{instr} > %{targets}")))
(rule
(targets opcodes.mli)
(mode fallback)
(deps (:instr (file opcodes.ml)))
(action
(bash "ocamlc -i %{instr} > %{targets}")))