File: dune

package info (click to toggle)
js-of-ocaml 4.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 7,372 kB
  • sloc: ml: 70,468; javascript: 8,238; ansic: 319; makefile: 217; lisp: 23; sh: 6; perl: 4
file content (84 lines) | stat: -rw-r--r-- 1,219 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
73
74
75
76
77
78
79
80
81
82
83
84
(rule
 (targets module1.cmo module1.cmi)
 (action
  (run ocamlc -g -c %{dep:module1.ml})))

(rule
 (targets module2.cmo module2.cmi)
 (deps module1.cmi)
 (action
  (run ocamlc -g -c %{dep:module2.ml})))

(rule
 (targets module1.js)
 (action
  (run
   %{bin:js_of_ocaml}
   --pretty
   --source-map
   %{dep:module1.cmo}
   -o
   %{targets})))

(rule
 (targets module2.js)
 (action
  (run
   %{bin:js_of_ocaml}
   --pretty
   --source-map
   %{dep:module2.cmo}
   -o
   %{targets})))

(rule
 (targets stdlib.js)
 (action
  (run
   %{bin:js_of_ocaml}
   --pretty
   --source-map
   %{lib:stdlib:stdlib.cma}
   -o
   %{targets})))

(rule
 (targets std_exit.js)
 (action
  (run
   %{bin:js_of_ocaml}
   --pretty
   --source-map
   %{lib:stdlib:std_exit.cmo}
   -o
   %{targets})))

(rule
 (targets myruntime.js)
 (action
  (run %{bin:js_of_ocaml} build-runtime --pretty --source-map -o %{targets})))

(rule
 (targets bin.js)
 (action
  (run
   %{bin:js_of_ocaml}
   link
   %{dep:myruntime.js}
   %{dep:stdlib.js}
   %{dep:module1.js}
   %{dep:module2.js}
   %{dep:std_exit.js}
   -o
   %{targets})))

(alias
 (name default)
 (deps
  myruntime.js
  stdlib.js
  std_exit.js
  module1.js
  module2.js
  bin.js
  index.html))