File: dune

package info (click to toggle)
ocaml-odoc 2.1.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,744 kB
  • sloc: ml: 37,049; makefile: 124; sh: 79
file content (29 lines) | stat: -rw-r--r-- 557 bytes parent folder | download
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
(include link.dune.inc)

(rule
 (deps
  (glob_files cases/*)
  (glob_files html/*.targets)
  (glob_files latex/*.targets)
  (glob_files man/*.targets))
 (enabled_if
  (>= %{ocaml_version} 4.04))
 (action
  (with-stdout-to
   link.dune.inc.gen
   (pipe-stdout
    (run gen_rules/gen_rules.exe)
    (run dune format-dune-file)))))

(rule
 (alias runtest)
 (enabled_if
  (>= %{ocaml_version} 4.04))
 (action
  (diff link.dune.inc link.dune.inc.gen)))

(library
 (name gen_rules_lib)
 (libraries sexplib0 unix fpath)
 (enabled_if
  (>= %{ocaml_version} 4.04)))