--- lib/Makefile.orig 2001-06-21 11:46:05 UTC +++ lib/Makefile @@ -3,15 +3,15 @@ OCAMLC=ocamlc -g OCAMLOPT=ocamlopt OCAMLDEP=ocamldep -OCAMLLIB=`ocamlc -where` +OCAMLLIB=$(PREFIX)/lib/ocaml CAMLJAVALIB=$(OCAMLLIB)/camljava all: jni.cma jni.cmxa javaclasses install: - mkdir -p $(CAMLJAVALIB) - cp jni.cma jni.cmi jni.cmxa jni.a libcamljni.a jni.mli $(CAMLJAVALIB) - jar cf $(CAMLJAVALIB)/camljava.jar fr/inria/caml/camljava/*.class + mkdir -p $(DESTDIR)$(CAMLJAVALIB) + $(BSD_INSTALL_DATA) jni.cma jni.cmi jni.cmxa jni.a libcamljni.a jni.mli $(DESTDIR)$(CAMLJAVALIB) + jar cf $(DESTDIR)$(CAMLJAVALIB)/camljava.jar fr/inria/caml/camljava/*.class jni.cma: jni.cmo libcamljni.a $(OCAMLC) -linkall -a -o jni.cma -custom jni.cmo \