aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2018-11-07 01:21:25 +0100
committerEmilio Jesus Gallego Arias2018-11-07 01:21:25 +0100
commitb39a7c75a9d90b0fa4446fcefd6708d32271dad2 (patch)
tree14b6dfe98850241065e4d441e1daf568f587dea4
parenta3e1acb50be3b700b7c36daef4d56f6c6d3ded6a (diff)
[dune] Add support for building with Dune for the ML part.
This allows to drop the plugin_tutorials in the coq tree and have the build compose.
-rw-r--r--.gitignore1
-rw-r--r--tuto0/src/dune9
-rw-r--r--tuto1/src/dune9
-rw-r--r--tuto2/src/dune9
-rw-r--r--tuto3/src/dune9
5 files changed, 37 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index be4ea26f86..6efd03647c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,4 @@ Makefile.coq*
*.vo
*.glob
*.aux
+*/*/.merlin
diff --git a/tuto0/src/dune b/tuto0/src/dune
new file mode 100644
index 0000000000..79d561061d
--- /dev/null
+++ b/tuto0/src/dune
@@ -0,0 +1,9 @@
+(library
+ (name tuto0_plugin)
+ (public_name coq.plugins.tutorial.p0)
+ (libraries coq.plugins.ltac))
+
+(rule
+ (targets g_tuto0.ml)
+ (deps (:pp-file g_tuto0.mlg) )
+ (action (run coqpp %{pp-file})))
diff --git a/tuto1/src/dune b/tuto1/src/dune
new file mode 100644
index 0000000000..cf9c674b14
--- /dev/null
+++ b/tuto1/src/dune
@@ -0,0 +1,9 @@
+(library
+ (name tuto1_plugin)
+ (public_name coq.plugins.tutorial.p1)
+ (libraries coq.plugins.ltac))
+
+(rule
+ (targets g_tuto1.ml)
+ (deps (:pp-file g_tuto1.mlg) )
+ (action (run coqpp %{pp-file})))
diff --git a/tuto2/src/dune b/tuto2/src/dune
new file mode 100644
index 0000000000..f2bc405455
--- /dev/null
+++ b/tuto2/src/dune
@@ -0,0 +1,9 @@
+(library
+ (name tuto2_plugin)
+ (public_name coq.plugins.tutorial.p2)
+ (libraries coq.plugins.ltac))
+
+(rule
+ (targets demo.ml)
+ (deps (:pp-file demo.mlg) )
+ (action (run coqpp %{pp-file})))
diff --git a/tuto3/src/dune b/tuto3/src/dune
new file mode 100644
index 0000000000..6b09d5d98b
--- /dev/null
+++ b/tuto3/src/dune
@@ -0,0 +1,9 @@
+(library
+ (name tuto3_plugin)
+ (public_name coq.plugins.tutorial.p3)
+ (libraries coq.plugins.ltac))
+
+(rule
+ (targets g_tuto3.ml)
+ (deps (:pp-file g_tuto3.mlg))
+ (action (run coqpp %{pp-file})))