Commits

Sebastien Mondet  committed 1e30e47

build: update generated files

  • Participants
  • Parent commits 943e17f

Comments (0)

Files changed (1)

    Sys.chdir "../";
    ()
 
+
 let build () =
   in_build_directory (fun () ->
       chain [
       ];
     )
 
+
 let install () =
     in_build_directory (fun () ->
         chain [
           "ocamlfind install bufx ../META bufx.cmx bufx.cmo bufx.cma bufx.cmi bufx.cmxa bufx.cmxs bufx.a bufx.o"
         ])
 
+
+let merlinize () =
+    chain [
+      "echo 'S .' > .merlin";
+      "echo 'B _build' >> .merlin";
+      
+     ]
+
+
 let build_doc () =
     in_build_directory (fun () ->
         chain [
                        sprintf "ocamlfind ocamldoc  -charset UTF-8 -keep-code -colorize-code -html bufx.ml -d doc/";
         ])
 
+
 let name = "bufx"
+
 let () =
   match args with
   | _ :: "build" :: [] ->
     chain [
       sprintf "ocamlfind remove %s" name
     ]
+  | _ :: "merlinize" :: [] -> merlinize ()
   | _ :: "clean" :: []
   | _ :: "C" :: [] ->
     cmdf "rm -fr _build"
     say "usage: ocaml %s [build|build_doc|install|uninstall|clean]" Sys.argv.(0);
     exit 1
     
+