summaryrefslogtreecommitdiff
path: root/databases/ocaml-dbm/files/patch-Makefile
blob: c1e15f46971f07d09470eb9b0be38cca2ac94fd4 (plain) (blame)
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
26
27
$NetBSD: patch-Makefile,v 1.1 2012/12/15 10:25:52 jaapb Exp $

Install into DESTDIR
--- Makefile.orig	2011-11-22 15:56:49.000000000 +0000
+++ Makefile
@@ -57,13 +57,14 @@ depend:
 	$(OCAMLDEP) *.ml *.mli > .depend
 
 install::
-	if test -f dllcamldbm.$(SO); then cp dllcamldbm.$(SO) $(STUBLIBDIR)/; fi 
-	cp libcamldbm.$(A) $(LIBDIR)/
-	cd $(LIBDIR) && ranlib libcamldbm.$(A)
-	cp dbm.cma dbm.cmxa dbm.cmi dbm.mli $(LIBDIR)/
-	cp dbm.$(A) $(LIBDIR)/
-	cd $(LIBDIR) && ranlib dbm.$(A)
-	if test -f dbm.cmxs; then cp dbm.cmxs $(LIBDIR)/; fi
+	if test -f dllcamldbm.$(SO); then cp dllcamldbm.$(SO) \
+	$(DESTDIR)/$(STUBLIBDIR)/; fi 
+	cp libcamldbm.$(A) $(DESTDIR)/$(LIBDIR)/
+	cd $(DESTDIR)/$(LIBDIR) && ranlib libcamldbm.$(A)
+	cp dbm.cma dbm.cmxa dbm.cmi dbm.mli $(DESTDIR)/$(LIBDIR)/
+	cp dbm.$(A) $(DESTDIR)/$(LIBDIR)/
+	cd $(DESTDIR)/$(LIBDIR) && ranlib dbm.$(A)
+	if test -f dbm.cmxs; then cp dbm.cmxs $(DESTDIR)/$(LIBDIR)/; fi
 
 clean::
 	rm -f *.cm* *.$(O) *.$(A) *.$(SO)