blob: 47d29fa02c1334f7b468aa5171cb79664ba07e09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-otherlibs_dynlink_Makefile,v 1.3 2015/12/29 23:34:53 dholland Exp $
Use BSD_INSTALL_* instead of mkdir and cp
--- otherlibs/dynlink/Makefile.orig 2014-04-29 11:56:17.000000000 +0000
+++ otherlibs/dynlink/Makefile
@@ -74,12 +74,12 @@ extract_crc: dynlink.cma extract_crc.cmo
INSTALL_LIBDIR=$(DESTDIR)$(LIBDIR)
install:
- cp dynlink.cmi dynlink.cma dynlink.mli $(INSTALL_LIBDIR)
- cp extract_crc $(INSTALL_LIBDIR)/extract_crc$(EXE)
+ $(BSD_INSTALL_DATA) dynlink.cmi dynlink.cma dynlink.mli $(INSTALL_LIBDIR)
+ $(BSD_INSTALL_SCRIPT) extract_crc $(INSTALL_LIBDIR)/extract_crc$(EXE)
installopt:
if $(NATDYNLINK); then \
- cp $(NATOBJS) dynlink.cmxa dynlink.$(A) $(INSTALL_LIBDIR) && \
+ $(BSD_INSTALL_DATA) $(NATOBJS) dynlink.cmxa dynlink.$(A) $(INSTALL_LIBDIR) && \
cd $(INSTALL_LIBDIR) && $(RANLIB) dynlink.$(A); \
fi
|