]> matita.cs.unibo.it Git - helm.git/commitdiff
OCAMLPATH is not overrid if already defined
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Mon, 29 May 2006 17:20:16 +0000 (17:20 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Mon, 29 May 2006 17:20:16 +0000 (17:20 +0000)
daemons/graphs/tools/Makefile

index bef00fca356b88eba54d5fe30a6f9013028fdc21..bd473431a0bd420fcda7d33878b7290b56a337c3 100644 (file)
@@ -6,7 +6,11 @@ SED=cat
 REQUIRES = http helm-registry
 PREDICATES = mt
 OCAMLOPTIONS = -package "$(REQUIRES)" -predicates "$(PREDICATES)" -thread
-OCAMLFIND = OCAMLPATH=../../../components/METAS/ ocamlfind
+ifeq ($(origin OCAMLPATH), undefined)
+OCAMLFIND = OCAMLPATH=../../components/METAS ocamlfind
+else
+OCAMLFIND = ocamlfind
+endif
 OCAMLC = $(OCAMLFIND) ocamlc $(OCAMLOPTIONS)
 OCAMLOPT = $(OCAMLFIND) ocamlopt $(OCAMLOPTIONS)
 EXECUTABLES = uriSetQueue drawGraph