File: dune

package info (click to toggle)
js-of-ocaml 5.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 32,020 kB
  • sloc: ml: 91,250; javascript: 57,289; ansic: 315; makefile: 271; lisp: 23; sh: 6; perl: 4
file content (72 lines) | stat: -rw-r--r-- 1,434 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
(executable
 (name js_of_ocaml)
 (public_name js_of_ocaml)
 (package js_of_ocaml-compiler)
 (libraries
  jsoo_cmdline
  js_of_ocaml-compiler
  cmdliner
  compiler-libs.common
  js_of_ocaml-compiler.runtime-files
  (select
   findlib_support.ml
   from
   ;; Only link js_of_ocaml-compiler.findlib-support if it exists
   (js_of_ocaml-compiler.findlib-support -> findlib_support.empty.ml)
   (-> findlib_support.empty.ml)))
 (modes
  byte
  (best exe))
 (flags
  (:standard -safe-string)))

(rule
 (targets js_of_ocaml.1)
 (action
  (with-stdout-to
   %{targets}
   (run %{bin:js_of_ocaml} --help=groff))))

(rule
 (targets js_of_ocaml-link.1)
 (action
  (with-stdout-to
   %{targets}
   (run %{bin:js_of_ocaml} link --help=groff))))

(rule
 (targets js_of_ocaml-build-fs.1)
 (action
  (with-stdout-to
   %{targets}
   (run %{bin:js_of_ocaml} build-fs --help=groff))))

(rule
 (targets js_of_ocaml-build-runtime.1)
 (action
  (with-stdout-to
   %{targets}
   (run %{bin:js_of_ocaml} build-runtime --help=groff))))

(install
 (section man)
 (package js_of_ocaml-compiler)
 (files
  js_of_ocaml.1
  js_of_ocaml-link.1
  js_of_ocaml-build-fs.1
  js_of_ocaml-build-runtime.1))

;; Generate and install runtime.js for compatibility reasons

(rule
 (target runtime.js)
 (action
  (with-stdout-to
   %{target}
   (run %{bin:js_of_ocaml} print-standard-runtime))))

(install
 (section lib)
 (package js_of_ocaml-compiler)
 (files runtime.js))