File: make_install

package info (click to toggle)
ocaml-gnuplot 0.8.3-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 440 kB
  • sloc: ml: 2,148; makefile: 185
file content (25 lines) | stat: -rw-r--r-- 699 bytes parent folder | download | duplicates (2)
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
From: Ralf Treinen <treinen@debian.org>
Date: Wed, 4 Sep 2019 14:10:12 +0200
Subject: honor $(PREFIX) when installing libraries

---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 66e947a..8277976 100644
--- a/Makefile
+++ b/Makefile
@@ -73,10 +73,10 @@ gnuplot_sys.ml: gnuplot_$(PLATFORM).ml
 # Installation
 .PHONY: install
 install: META all
-	$(OCAMLFIND) install $(PKGNAME) META $(INSTALL_FILES)
+	$(OCAMLFIND) install -destdir $(DESTDIR)/usr/lib/ocaml $(PKGNAME) META $(INSTALL_FILES)
 
 uninstall:
-	$(OCAMLFIND) remove $(PKGNAME)
+	$(OCAMLFIND) remove -destdir $(DESTDIR)/usr/lib/ocaml $(PKGNAME)
 
 META: META.in
 	$(COPY) $^ $@