File: dune

package info (click to toggle)
ocaml-odoc 3.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 12,104 kB
  • sloc: ml: 59,291; javascript: 2,572; sh: 566; makefile: 31
file content (35 lines) | stat: -rw-r--r-- 644 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
30
31
32
33
34
35
(include link.dune.inc)

(rule
 (deps
  (glob_files cases/*)
  (glob_files html/*.targets)
  (glob_files latex/*.targets)
  (glob_files man/*.targets))
 (package odoc)
 (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)
 (package odoc)
 (enabled_if
  (>= %{ocaml_version} 4.04))
 (action
  (diff link.dune.inc link.dune.inc.gen)))

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

(cram
 (package odoc)
 (deps %{bin:odoc}))