summarylogtreecommitdiffstats
path: root/fix-makefile-install-target.diff
blob: 0d4bb5da2553a15d501c4d623f58597924062efd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
diff --git a/Makefile.in b/Makefile.in
index 3c5cf07..3642dc2 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -13,11 +13,10 @@
 # (enclosed in the file LGPL).
 
 # where to install the binaries
-DESTDIR=@prefix@
 # prefix=@prefix@
 # exec_prefix=@exec_prefix@
 # BINDIR=$(DESTDIR)@bindir@
-LIBDIR=$(DESTDIR)/lib/
+LIBDIR ?= $(shell @OCAMLC@ -where)
 # DATADIR=$(DESTDIR)@datadir@/ocplib-simplex
 
 # where to install the man page
@@ -112,7 +111,8 @@ META: config.status
 ##############
 
 install: all META
-	OCAMLFIND_DESTDIR=$(LIBDIR) \
+	install -dm0755 $(DESTDIR)$(LIBDIR)/ocplib-simplex
+	OCAMLFIND_DESTDIR=$(DESTDIR)$(LIBDIR) \
 	  ocamlfind install ocplib-simplex src/$(LIBNAME).* src/*.mli META