summaryrefslogtreecommitdiff
path: root/devel/ocaml-findlib/files/patch-src__bytes__Makefile
blob: 4758def89193d1a088d5ea57950ee3839572407d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- src/bytes/Makefile.orig	2016-11-18 13:04:46 UTC
+++ src/bytes/Makefile
@@ -19,9 +19,9 @@ opt:
 	$(OCAMLBUILD) $$files
 
 install: all
-	mkdir -p "$(prefix)$(OCAML_SITELIB)/bytes"
-	cd _build/ && cp ../META $(BYTE_FILES) "$(prefix)$(OCAML_SITELIB)/bytes"
-	cd _build/ && for f in $(NATIVE_FILES) $(NATIVE_FILES_DYNLINK); do if [ -f "$$f" ]; then cp $$f "$(prefix)$(OCAML_SITELIB)/bytes"; fi; done
+	mkdir -p "$(DESTDIR)$(prefix)$(OCAML_SITELIB)/bytes"
+	cd _build/ && cp ../META $(BYTE_FILES) "$(DESTDIR)$(prefix)$(OCAML_SITELIB)/bytes"
+	cd _build/ && for f in $(NATIVE_FILES) $(NATIVE_FILES_DYNLINK); do if [ -f "$$f" ]; then cp $$f "$(DESTDIR)$(prefix)$(OCAML_SITELIB)/bytes"; fi; done
 
 uninstall: 
 	rm -rf "$(prefix)$(OCAML_SITELIB)/bytes"