File: dune

package info (click to toggle)
coq 8.16.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 40,596 kB
  • sloc: ml: 219,376; sh: 3,545; python: 3,231; ansic: 2,529; makefile: 767; lisp: 279; javascript: 63; xml: 24; sed: 2
file content (80 lines) | stat: -rw-r--r-- 2,937 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
(rule
 (targets coqtop-prelude)
 (deps
  %{bin:coqtop}
  %{project_root}/theories/Init/Prelude.vo)
 (action
  (with-stdout-to coqtop-prelude
   (progn
    (echo "#!/bin/bash\n")
    (bash "echo '\"$(dirname \"$0\")\"/%{bin:coqtop} -I \"$(dirname \"$0\")/%{project_root}/../install/default/lib\" -coqlib \"$(dirname \"$0\")/%{project_root}\" \"$@\"'")
    (run chmod +x %{targets})))))

(rule
 (targets coqc-prelude)
 (deps
  %{bin:coqc}
  %{project_root}/theories/Init/Prelude.vo)
 (action
  (with-stdout-to coqc-prelude
   (progn
    (echo "#!/bin/bash\n")
    (bash "echo '\"$(dirname \"$0\")\"/%{bin:coqc} -I \"$(dirname \"$0\")/%{project_root}/../install/default/lib\" -coqlib \"$(dirname \"$0\")\"/%{project_root} \"$@\"'")
    (run chmod +x %{targets})))))

(rule
 (targets coqbyte-prelude)
 (deps
  %{project_root}/theories/Init/Prelude.vo
  %{bin:coqtop.byte}
  %{lib:coq-core.config:config.cma}
  %{lib:coq-core.clib:clib.cma}
  %{lib:coq-core.lib:lib.cma}
  %{lib:coq-core.kernel:kernel.cma}
  %{lib:coq-core.vm:coqrun.cma}
  %{lib:coq-core.vm:../../stublibs/dllcoqrun_stubs.so}
  %{lib:coq-core.library:library.cma}
  %{lib:coq-core.engine:engine.cma}
  %{lib:coq-core.pretyping:pretyping.cma}
  %{lib:coq-core.gramlib:gramlib.cma}
  %{lib:coq-core.interp:interp.cma}
  %{lib:coq-core.proofs:proofs.cma}
  %{lib:coq-core.parsing:parsing.cma}
  %{lib:coq-core.printing:printing.cma}
  %{lib:coq-core.tactics:tactics.cma}
  %{lib:coq-core.vernac:vernac.cma}
  %{lib:coq-core.stm:stm.cma}
  %{lib:coq-core.sysinit:sysinit.cma}
  %{lib:coq-core.toplevel:toplevel.cma}
  %{lib:coq-core.plugins.number_string_notation:number_string_notation_plugin.cma}
  %{lib:coq-core.plugins.tauto:tauto_plugin.cma}
  %{lib:coq-core.plugins.cc:cc_plugin.cma}
  %{lib:coq-core.plugins.firstorder:firstorder_plugin.cma}
  %{lib:coq-core.plugins.ltac:ltac_plugin.cma})
 (action
  (with-stdout-to %{targets}
   (progn
    (echo "#!/bin/bash\n")
    (bash "echo '\"$(dirname \"$0\")\"/%{bin:coqtop.byte} -I \"$(dirname \"$0\")/%{project_root}/../install/default/lib\" -coqlib \"$(dirname \"$0\")\"/%{project_root} \"$@\"'")
    (run chmod +x %{targets})))))

(rule
 (targets coqide-prelude)
 (deps
  ; without this if the gtk libs are not available dune can try to use
  ; coqide from PATH instead of giving a nice error
  ; there is no problem with the other shims since they don't depend on optional build products
  %{project_root}/ide/coqide/coqide_main.exe

  %{bin:coqqueryworker.opt}
  %{bin:coqtacticworker.opt}
  %{bin:coqproofworker.opt}
  %{project_root}/theories/Init/Prelude.vo
  %{project_root}/coqide-server.install
  %{project_root}/coqide.install)
 (action
  (with-stdout-to coqide-prelude
   (progn
    (echo "#!/bin/bash\n")
    (bash "echo '\"$(dirname \"$0\")\"/%{bin:coqide} -I \"$(dirname \"$0\")/%{project_root}/../install/default/lib\" -coqlib \"$(dirname \"$0\")\"/%{project_root} \"$@\"'")
    (run chmod +x %{targets})))))