summaryrefslogtreecommitdiff
path: root/misc/ocaml-cudf/patches/patch-Makefile
blob: 8938060050d1952d8c8d0e853927b9557e520dee (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
26
$NetBSD: patch-Makefile,v 1.3 2017/07/11 10:29:58 jaapb Exp $

Correct installation procedure
--- Makefile.orig	2017-03-21 14:39:23.000000000 +0000
+++ Makefile
@@ -25,14 +25,14 @@ OCAMLBUILD = ocamlbuild
 OBFLAGS =
 OCAMLFIND = ocamlfind
 
-ifeq ($(DESTDIR),)
+#ifeq ($(DESTDIR),)
 INSTALL = $(OCAMLFIND) install
 UNINSTALL = $(OCAMLFIND) remove
-else
-DESTDIR:=$(DESTDIR)/
-INSTALL = $(OCAMLFIND) install -destdir $(DESTDIR)$(OCAMLLIBDIR)
-UNINSTALL = $(OCAMLFIND) remove -destdir $(DESTDIR)$(OCAMLLIBDIR)
-endif
+#else
+#DESTDIR:=$(DESTDIR)/
+#INSTALL = $(OCAMLFIND) install -destdir $(DESTDIR)$(OCAMLLIBDIR)
+#UNINSTALL = $(OCAMLFIND) remove -destdir $(DESTDIR)$(OCAMLLIBDIR)
+#endif
 
 DIST_DIR = $(NAME)-$(VERSION)
 DIST_TARBALL = $(DIST_DIR).tar.gz