summaryrefslogtreecommitdiff
path: root/lang/ocaml/patches/patch-asmrun_Makefile
blob: cd209bb5fd2d5b50e4d12af1d67d479e9a0f6288 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
$NetBSD: patch-asmrun_Makefile,v 1.6 2016/05/05 08:12:01 jaapb Exp $

Use BSD_INSTALL_* instead of mkdir and cp
--- asmrun/Makefile.orig	2016-04-01 12:53:41.000000000 +0000
+++ asmrun/Makefile
@@ -92,25 +92,25 @@ libasmrun_shared.so: $(PICOBJS)
 INSTALL_LIBDIR=$(DESTDIR)$(LIBDIR)
 
 install::
-	cp libasmrun.a $(INSTALL_LIBDIR)/libasmrun.a
+	$(BSD_INSTALL_DATA) libasmrun.a $(INSTALL_LIBDIR)/libasmrun.a
 	cd $(INSTALL_LIBDIR); $(RANLIB) libasmrun.a
 .PHONY: install-default
 
 ifeq "$(RUNTIMED)" "runtimed"
 install::
-	cp libasmrund.a $(INSTALL_LIBDIR)/libasmrund.a
+	$(BSD_INSTALL_DATA) libasmrund.a $(INSTALL_LIBDIR)/libasmrund.a
 	cd $(INSTALL_LIBDIR); $(RANLIB) libasmrund.a
 endif
 
 ifeq "$(RUNTIMEI)" "true"
 install::
-	cp libasmruni.a $(INSTALL_LIBDIR)/libasmruni.a
+	$(BSD_INSTALL_DATA) libasmruni.a $(INSTALL_LIBDIR)/libasmruni.a
 	cd $(INSTALL_LIBDIR); $(RANLIB) libasmruni.a
 endif
 
 ifeq "$(PROFILING)" "prof"
 install::
-	cp libasmrunp.a $(INSTALL_LIBDIR)/libasmrunp.a
+	$(BSD_INSTALL_DATA) libasmrunp.a $(INSTALL_LIBDIR)/libasmrunp.a
 	cd $(INSTALL_LIBDIR); $(RANLIB) libasmrunp.a
 else
 install::
@@ -120,9 +120,9 @@ endif
 
 ifeq "$(SHARED)" "shared"
 install::
-	cp libasmrun_pic.a $(INSTALL_LIBDIR)/libasmrun_pic.a
+	$(BSD_INSTALL_DATA) libasmrun_pic.a $(INSTALL_LIBDIR)/libasmrun_pic.a
 	cd $(INSTALL_LIBDIR); $(RANLIB) libasmrunp.a
-	cp libasmrun_shared.so $(INSTALL_LIBDIR)/libasmrun_shared.so
+	$(BSD_INSTALL_LIB) libasmrun_shared.so $(INSTALL_LIBDIR)/libasmrun_shared.so
 endif
 
 main.c: ../byterun/main.c