Commits

camlspotter committed b748db1

moved prefix to external

Comments (0)

Files changed (2)

 # ==========================
 # Functions to integrate non-OMake projects
 
+#| The prefix. Equal to the PREFIX environment variable
+try
+  PREFIX=$(getenv PREFIX)
+default
+  eprintln(Specify PREFIX environment variable.)
+  exit 1 
+
 # Downloading
 # ============================
 
 #| The build root directory  
 BIG_ROOT=$(dir .)
 
-#| The prefix. Equal to the PREFIX environment variable
-try
-  PREFIX=$(getenv PREFIX)
-default
-  try
-    PREFIX=$(getenv prefix)
-  default
-    eprintln(Specify PREFIX/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
 # ========================================================================