diff --git a/digestif.opam b/digestif.opam index 2add508..917b788 100644 --- a/digestif.opam +++ b/digestif.opam @@ -50,7 +50,7 @@ depends: [ "astring" {with-test} "fpath" {with-test} "rresult" {with-test} - "ocamlfind" {build & with-test} + "ocamlfind" {with-test} ] depopts: [ diff --git a/install/install.ml b/install/install.ml index 40e515e..6d316f7 100755 --- a/install/install.ml +++ b/install/install.ml @@ -1,10 +1,7 @@ #!/usr/bin/env ocaml ;; -#use "topfind" - -;; -#require "unix" +#load "unix.cma" let xen = "xen_linkopts = \"-l:rakia/xen/librakia_xen_stubs.a\"" @@ -12,7 +9,10 @@ let freestanding = "freestanding_linkopts = \ \"-l:rakia/freestanding/librakia_freestanding_stubs.a\"" -let meta = "_build/default/META.digestif" +let meta = + match Sys.getenv "DUNE_BUILD_DIR" with + | _build -> _build ^ "/default/META.digestif" + | exception Not_found -> "_build/default/META.digestif" let new_line = '\n'