|
18 | 18 | (with-stdout-to %{targets} |
19 | 19 | (progn |
20 | 20 | (echo "#!/usr/bin/env bash\n") |
21 | | - (bash "echo '\"$(dirname \"$0\")\"/%{bin:coqtop} -I \"$(dirname \"$0\")/%{project_root}/../install/default/lib\" -coqlib \"$(dirname \"$0\")/%{project_root}\" \"$@\"'") |
| 21 | + (bash "echo '\"$(dirname \"$0\")\"/%{bin:coqtop} -I \"$(dirname \"$0\")/%{workspace_root}/_build/install/default/lib\" -coqlib \"$(dirname \"$0\")/%{project_root}\" \"$@\"'") |
| 22 | + (run chmod +x %{targets}))))) |
| 23 | + |
| 24 | +; coqidetop |
| 25 | + |
| 26 | +(alias |
| 27 | + (name coqidetop-prelude) |
| 28 | + (deps |
| 29 | + %{bin:coqidetop.opt} |
| 30 | + ; XXX: bug, we are missing the dep on the _install meta file... |
| 31 | + %{project_root}/theories/Init/Prelude.vo)) |
| 32 | + |
| 33 | +(rule |
| 34 | + (targets coqidetop.opt) |
| 35 | + (deps (alias coqidetop-prelude)) |
| 36 | + (action |
| 37 | + (with-stdout-to %{targets} |
| 38 | + (progn |
| 39 | + (echo "#!/usr/bin/env bash\n") |
| 40 | + (bash "echo '\"$(dirname \"$0\")\"/%{bin:coqidetop.opt} -I \"$(dirname \"$0\")/%{workspace_root}/_build/install/default/lib\" -coqlib \"$(dirname \"$0\")/%{project_root}\" \"$@\"'") |
22 | 41 | (run chmod +x %{targets}))))) |
23 | 42 |
|
24 | 43 | ; coqc |
|
37 | 56 | (with-stdout-to %{targets} |
38 | 57 | (progn |
39 | 58 | (echo "#!/usr/bin/env bash\n") |
40 | | - (bash "echo '\"$(dirname \"$0\")\"/%{bin:coqc} -I \"$(dirname \"$0\")/%{project_root}/../install/default/lib\" -coqlib \"$(dirname \"$0\")\"/%{project_root} -nI \"$(dirname \"$0\")\"/%{project_root}/kernel/.kernel.objs/byte \"$@\"'") |
| 59 | + (bash "echo '\"$(dirname \"$0\")\"/%{bin:coqc} -I \"$(dirname \"$0\")/%{workspace_root}/_build/install/default/lib\" -coqlib \"$(dirname \"$0\")\"/%{project_root} -nI \"$(dirname \"$0\")\"/%{project_root}/kernel/.kernel.objs/byte \"$@\"'") |
41 | 60 | (run chmod +x %{targets}))))) |
42 | 61 |
|
43 | 62 | ; coqtop.byte |
|
80 | 99 | (with-stdout-to %{targets} |
81 | 100 | (progn |
82 | 101 | (echo "#!/usr/bin/env bash\n") |
83 | | - (bash "echo '\"$(dirname \"$0\")\"/%{bin:coqtop.byte} -I \"$(dirname \"$0\")/%{project_root}/../install/default/lib\" -coqlib \"$(dirname \"$0\")\"/%{project_root} \"$@\"'") |
| 102 | + (bash "echo '\"$(dirname \"$0\")\"/%{bin:coqtop.byte} -I \"$(dirname \"$0\")/%{workspace_root}/_build/install/default/lib\" -coqlib \"$(dirname \"$0\")\"/%{project_root} \"$@\"'") |
84 | 103 | (run chmod +x %{targets}))))) |
85 | 104 |
|
86 | 105 | ; coqide |
|
91 | 110 | ; without this if the gtk libs are not available dune can try to use |
92 | 111 | ; coqide from PATH instead of giving a nice error |
93 | 112 | ; there is no problem with the other shims since they don't depend on optional build products |
94 | | - %{project_root}/ide/coqide/coqide_main.exe |
| 113 | + %{project_root}/ide/coqide/rocqide_main.exe |
95 | 114 | %{bin:coqworker.opt} |
96 | 115 | %{project_root}/theories/Init/Prelude.vo |
97 | 116 | %{project_root}/coqide-server.install |
|
104 | 123 | (with-stdout-to %{targets} |
105 | 124 | (progn |
106 | 125 | (echo "#!/usr/bin/env bash\n") |
107 | | - (bash "echo '\"$(dirname \"$0\")\"/%{bin:coqide} -I \"$(dirname \"$0\")/%{project_root}/../install/default/lib\" -coqlib \"$(dirname \"$0\")\"/%{project_root} \"$@\"'") |
| 126 | + (bash "echo '\"$(dirname \"$0\")\"/%{bin:coqide} -I \"$(dirname \"$0\")/%{workspace_root}/_build/install/default/lib\" -coqlib \"$(dirname \"$0\")\"/%{project_root} \"$@\"'") |
108 | 127 | (run chmod +x %{targets}))))) |
0 commit comments