Commits

camlspotter committed e068430

oasis

Comments (0)

Files changed (3)

 #| The build root directory  
 BIG_ROOT=$(dir .)
 
-#| The prefix. Equal to the PREFIX environment variable
-try
-  PREFIX=$(getenv PREFIX)
-default
-  eprintln(Specify PREFIX environment variable.)
-  exit 1 
-
 # Installation mark files
 # =======================================================================
 
 
 #|OMy requires OCamlFind! Do not ask me how to use OMy without OCamlFind. Please.
 USE_OCAMLFIND = true
-OCAMLFIND_DESTDIR=$(PREFIX)/lib/ocaml/site-lib
+OCAMLFIND_DESTDIR= $(shell ocamlfind printconf destdir)
 
 # OCaml -where
 # ========================================================================
 License:     LGPL-2.0 with OCaml linking exception
 Plugins:      StdFiles (0.2)
 BuildType:    Custom (0.2)
-XCustomBuild: omake
+InstallType:    Custom (0.2)
+XCustomBuild: yes no | omake --install; omake
 XCustomInstall: omake install
 XCustomUninstall: omake uninstall
 
 (* setup.ml generated for the first time by OASIS v0.2.0 *)
 
 (* OASIS_START *)
-(* DO NOT EDIT (digest: e9a3ebbecce2a75a8c515f8a3c5eadb7) *)
+(* DO NOT EDIT (digest: 24d0e109e687c3c82db59ee565e7530a) *)
 (*
    Regenerated by OASIS v0.2.0
    Visit http://oasis.forge.ocamlcore.org for more information and
      build =
        CustomPlugin.Build.main
          {
-            CustomPlugin.cmd_main = [(OASISExpr.EBool true, ("omake", []))];
+            CustomPlugin.cmd_main =
+              [
+                 (OASISExpr.EBool true,
+                   ("yes", ["no"; "|"; "omake"; "--install;"; "omake"]))
+              ];
             cmd_clean = [(OASISExpr.EBool true, None)];
             cmd_distclean = [(OASISExpr.EBool true, None)];
             };
      test = [];
      doc = [];
-     install = InternalInstallPlugin.install;
-     uninstall = InternalInstallPlugin.uninstall;
+     install =
+       CustomPlugin.main
+         {
+            CustomPlugin.cmd_main =
+              [(OASISExpr.EBool true, ("omake", ["install"]))];
+            cmd_clean = [(OASISExpr.EBool true, None)];
+            cmd_distclean = [(OASISExpr.EBool true, None)];
+            };
+     uninstall =
+       CustomPlugin.main
+         {
+            CustomPlugin.cmd_main =
+              [(OASISExpr.EBool true, ("omake", ["uninstall"]))];
+            cmd_clean = [(OASISExpr.EBool true, None)];
+            cmd_distclean = [(OASISExpr.EBool true, None)];
+            };
      clean =
        [
           CustomPlugin.Build.clean
             {
-               CustomPlugin.cmd_main = [(OASISExpr.EBool true, ("omake", []))];
+               CustomPlugin.cmd_main =
+                 [
+                    (OASISExpr.EBool true,
+                      ("yes", ["no"; "|"; "omake"; "--install;"; "omake"]))
+                 ];
+               cmd_clean = [(OASISExpr.EBool true, None)];
+               cmd_distclean = [(OASISExpr.EBool true, None)];
+               };
+          CustomPlugin.clean
+            {
+               CustomPlugin.cmd_main =
+                 [(OASISExpr.EBool true, ("omake", ["install"]))];
+               cmd_clean = [(OASISExpr.EBool true, None)];
+               cmd_distclean = [(OASISExpr.EBool true, None)];
+               };
+          CustomPlugin.clean
+            {
+               CustomPlugin.cmd_main =
+                 [(OASISExpr.EBool true, ("omake", ["uninstall"]))];
                cmd_clean = [(OASISExpr.EBool true, None)];
                cmd_distclean = [(OASISExpr.EBool true, None)];
                }
        [
           CustomPlugin.Build.distclean
             {
-               CustomPlugin.cmd_main = [(OASISExpr.EBool true, ("omake", []))];
+               CustomPlugin.cmd_main =
+                 [
+                    (OASISExpr.EBool true,
+                      ("yes", ["no"; "|"; "omake"; "--install;"; "omake"]))
+                 ];
+               cmd_clean = [(OASISExpr.EBool true, None)];
+               cmd_distclean = [(OASISExpr.EBool true, None)];
+               };
+          CustomPlugin.distclean
+            {
+               CustomPlugin.cmd_main =
+                 [(OASISExpr.EBool true, ("omake", ["install"]))];
+               cmd_clean = [(OASISExpr.EBool true, None)];
+               cmd_distclean = [(OASISExpr.EBool true, None)];
+               };
+          CustomPlugin.distclean
+            {
+               CustomPlugin.cmd_main =
+                 [(OASISExpr.EBool true, ("omake", ["uninstall"]))];
                cmd_clean = [(OASISExpr.EBool true, None)];
                cmd_distclean = [(OASISExpr.EBool true, None)];
                }
                pre_command = [(OASISExpr.EBool true, None)];
                post_command = [(OASISExpr.EBool true, None)];
                };
-          install_type = (`Install, "internal", Some "0.2");
+          install_type = (`Install, "Custom", Some "0.2");
           install_custom =
             {
                pre_command = [(OASISExpr.EBool true, None)];