# and put in a directory where there is a .depend file.
OCAMLFIND_DEST_DIR = @OCAMLFIND_DEST_DIR@
+OCAMLPATH = @OCAMLFIND_META_DIR@
PREPROCOPTIONS = -pp camlp4o
SYNTAXOPTIONS = -syntax camlp4o
OCAMLOPTIONS = -package "$(REQUIRES)" -predicates "$(PREDICATES)" -thread
OCAMLDEBUGOPTIONS = -g
OCAMLARCHIVEOPTIONS =
-OCAMLFIND = @OCAMLFIND@
+OCAMLFIND = OCAMLPATH=$(OCAMLPATH):$$OCAMLPATH @OCAMLFIND@
OCAMLC = $(OCAMLFIND) ocamlc $(OCAMLDEBUGOPTIONS) $(OCAMLOPTIONS) $(PREPROCOPTIONS)
OCAMLOPT = $(OCAMLFIND) opt $(OCAMLOPTIONS) $(PREPROCOPTIONS)
OCAMLDEP = $(OCAMLFIND) ocamldep -package "camlp4,$(REQUIRES)" $(SYNTAXOPTIONS)
OCAMLC_P4 = $(OCAMLFIND) ocamlc $(OCAMLDEBUGOPTIONS) $(OCAMLOPTIONS) $(SYNTAXOPTIONS)
OCAMLOPT_P4 = $(OCAMLFIND) opt $(OCAMLOPTIONS) $(SYNTAXOPTIONS)
-LIBRARIES = $(shell ocamlfind query -recursive -predicates "byte $(PREDICATES)" -format "%d/%a" $(REQUIRES))
-LIBRARIES_OPT = $(shell ocamlfind query -recursive -predicates "native $(PREDICATES)" -format "%d/%a" $(REQUIRES))
+LIBRARIES = $(shell $(OCAMLFIND) query -recursive -predicates "byte $(PREDICATES)" -format "%d/%a" $(REQUIRES))
+LIBRARIES_OPT = $(shell $(OCAMLFIND) query -recursive -predicates "native $(PREDICATES)" -format "%d/%a" $(REQUIRES))
ARCHIVE = $(PACKAGE).cma
$(NULL)
OCAMLFIND_DEST_DIR = @OCAMLFIND_DEST_DIR@
-OCAMLFIND_META_DIR = @OCAMLFIND_META_DIR@
+OCAMLPATH = @OCAMLFIND_META_DIR@
METAS = $(MODULES:%=METAS/META.helm-%)
-CWD := $(shell pwd)
-OCAMLPATH = $(CWD)/METAS/
all: metas $(MODULES:%=%.all)
opt: metas $(MODULES:%=%.opt)
cd $(@:%.uninstall=%) && make uninstall
rm -f $(OCAMLFIND_META_DIR)/$(@:%.uninstall=META.helm-%)
METAS/META.helm-%: METAS/meta.helm-%.src
- cp $< $@ && echo "directory=\"$(CWD)/$*\"" >> $@
+ cp $< $@ && echo "directory=\"$(shell pwd)/$*\"" >> $@
.PHONY: .dep.dot
.dep.dot:
AC_MSG_RESULT($OCAMLFIND_DEST_DIR)
AC_MSG_CHECKING("where to install the META files")
-OCAMLFIND_META_DIR="/public/sacerdot/prova/META"
+OCAMLFIND_META_DIR=`pwd`/METAS
AC_MSG_RESULT($OCAMLFIND_META_DIR)
AC_SUBST(OCAMLFIND)