-
Notifications
You must be signed in to change notification settings - Fork 51
/
dune
50 lines (44 loc) · 1.49 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
(library
(name elpi_plugin)
(public_name coq-elpi.elpi)
(synopsis "Elpi")
(flags :standard -w -27)
(preprocessor_deps coq_elpi_config.mlh)
(preprocess (pps ppx_optcomp -- -cookie "ppx_optcomp.env=env ~coq:(Defined \"%{coq:version.major}.%{coq:version.minor}\")"))
(libraries coq-core.plugins.ltac coq-core.vernac elpi))
(rule
(target coq_elpi_builtins_arg_HOAS.ml)
(deps ../elpi/coq-arg-HOAS.elpi (package elpi))
(action (with-stdout-to %{target}
(progn
(echo "(* Automatically generated from %{deps}, don't edit *)\n")
(echo "let code = {|\n")
(cat %{deps})
(echo "|}\n")))))
(rule
(target coq_elpi_builtins_HOAS.ml)
(deps ../elpi/coq-HOAS.elpi)
(action (with-stdout-to %{target}
(progn
(echo "(* Automatically generated from %{deps}, don't edit *)\n")
(echo "let code = {|\n")
(cat %{deps})
(echo "|}\n")))))
(rule
(target coq_elpi_config.ml)
(action (with-stdout-to %{target}
(progn
(echo "(* Automatically generated, don't edit *)\n")
(echo "[%%import \"coq_elpi_config.mlh\"]\n")
(echo "let elpi_version = \"%{version:elpi}\"\n")
(echo "let elpi2html = \"%{lib:elpi:elpi2html.elpi}\";;")))))
(rule
(target coq_elpi_config.mlh)
(action (with-stdout-to %{target}
(progn
(echo "(* Automatically generated, don't edit *)\n")
(echo "[%%define elpi ")
(run coq_elpi_version_parser %{version:elpi})
(echo "]\n")))))
(coq.pp
(modules coq_elpi_vernacular_syntax coq_elpi_arg_syntax))