summaryrefslogtreecommitdiff
path: root/lang/ocaml/patches/patch-stdlib_Makefile.shared
blob: 7b57834aff85abe29a566bf36c2b60277a3361e7 (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
$NetBSD: patch-stdlib_Makefile.shared,v 1.4 2015/08/07 11:16:30 jaapb Exp $

Use BSD_INSTALL_* instead of mkdir and cp
--- stdlib/Makefile.shared.orig	2015-07-20 14:10:11.000000000 +0000
+++ stdlib/Makefile.shared
@@ -45,16 +45,16 @@ all: stdlib.cma std_exit.cmo camlheader 
 INSTALL_LIBDIR=$(DESTDIR)$(LIBDIR)
 
 install: install-$(RUNTIMED)
-	cp stdlib.cma std_exit.cmo *.cmi *.cmt *.cmti *.mli *.ml \
+	$(BSD_INSTALL_DATA) stdlib.cma std_exit.cmo *.cmi *.cmt *.cmti *.mli *.ml \
 	  camlheader_ur \
 	  $(INSTALL_LIBDIR)
-	cp target_camlheader $(INSTALL_LIBDIR)/camlheader
+	$(BSD_INSTALL_DATA) target_camlheader $(INSTALL_LIBDIR)/camlheader
 
 install-noruntimed:
 .PHONY: install-noruntimed
 
 install-runtimed: target_camlheaderd
-	cp target_camlheaderd $(INSTALL_LIBDIR)/camlheaderd
+	$(BSD_INSTALL_DATA) target_camlheaderd $(INSTALL_LIBDIR)/camlheaderd
 .PHONY: install-runtimed
 
 stdlib.cma: $(OBJS)