Commits

Sebastien Mondet committed 3a34cfa

build: update `please.ml` and `META`

Comments (0)

Files changed (2)

 archive(native) = "pvem.cmxa"
 archive(native, plugin) = "pvem.cmxs"
 exists_if = "pvem.cma"
-requires = ""
+
         "ocamlfind ocamlopt  -c pvem.ml -annot -o pvem.cmx";
         "ocamlc pvem.cmo -a -o pvem.cma";
         "ocamlopt pvem.cmx -a -o pvem.cmxa";
-        "ocamlopt pvem.o -a -o pvem.a";
         "ocamlopt pvem.cmx -shared -o pvem.cmxs";
       ];
     )
 let name = "pvem"
 let () =
   match args with
-  | exec :: []
-  | exec :: "build" :: [] ->
+  | _ :: "build" :: [] ->
     say "Building.";
     build ();
     say "Done."
-  | exec :: "doc" :: [] ->
+  | _ :: "build_doc" :: [] ->
     say "Building the documentation.";
     build_doc ()
-      | exec :: "install" :: [] ->
+  | _ :: "install" :: [] ->
     say "Installing";
     install ();
-      | exec :: "uninstall" :: [] ->
+  | _ :: "uninstall" :: [] ->
     chain [
       sprintf "ocamlfind remove %s" name
     ]
-  | exec :: "clean" :: []
-  | exec :: "C" :: [] ->
+  | _ :: "clean" :: []
+  | _ :: "C" :: [] ->
     cmdf "rm -fr _build"
   | _ ->
-    say "usage: ocaml %s [build|test|install|uninstall|clean]" Sys.argv.(0)
+    say "usage: ocaml %s [build|build_doc|install|uninstall|clean]" Sys.argv.(0)