blob: 62e1f363db5efc8ad5e418ac9d3590be87cff322 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
$NetBSD: patch-ac,v 1.2 2010/02/19 22:22:22 joerg Exp $
--- OCamlMakefile.orig 2010-01-30 18:14:57.000000000 +0000
+++ OCamlMakefile
@@ -1102,11 +1102,13 @@ subprojs: $(SUBPROJS:%=subproj_%)
###########################################################################
# (UN)INSTALL RULES FOR LIBRARIES
+INSTALLDIR=`$(OCAMLC) -where`/site-lib
.PHONY: libinstall
libinstall: all
$(QUIET)printf "\nInstalling library with ocamlfind\n"
- $(OCAMLFIND) install $(OCAMLFIND_INSTFLAGS) $(RESULT) META $(LIBINSTALL_FILES)
+ ${BSD_INSTALL_DATA_DIR} ${DESTDIR}$(INSTALLDIR)
+ $(OCAMLFIND) install -ldconf /dev/null -destdir ${DESTDIR}$(INSTALLDIR) $(OCAMLFIND_INSTFLAGS) $(RESULT) META $(LIBINSTALL_FILES)
$(QUIET)printf "\nInstallation successful.\n"
.PHONY: libuninstall
|