(rule
 (targets test.output)
 (deps
  (package odoc))
 (action
  (run
   ocaml-mdx-test
   --prelude=%{dep:../lib/prelude.ml}
   -o
   %{targets}
   %{dep:test.md})))

(rule
 (alias runmdx)
 (enabled_if
  (>= %{ocaml_version} 4.06))
 (action
  (diff test.md test.output)))
