pkgsrc-ng/lang/ocaml/patches/patch-stdlib_Makefile
2013-09-26 17:14:40 +02:00

24 lines
868 B
Plaintext

$NetBSD: patch-stdlib_Makefile,v 1.1 2012/10/08 15:05:33 jaapb Exp $
Use BSD_INSTALL_* instead of mkdir and cp
--- stdlib/Makefile.orig 2011-07-27 14:17:02.000000000 +0000
+++ stdlib/Makefile
@@ -25,7 +25,7 @@ allopt-prof: stdlib.p.cmxa std_exit.p.cm
installopt: installopt-default installopt-$(PROFILING)
installopt-default:
- cp stdlib.cmxa stdlib.a std_exit.o *.cmx $(LIBDIR)
+ $(BSD_INSTALL_DATA) stdlib.cmxa stdlib.a std_exit.o *.cmx $(LIBDIR)
cd $(LIBDIR); $(RANLIB) stdlib.a
installopt-noprof:
@@ -36,7 +36,7 @@ installopt-noprof:
rm -f $(LIBDIR)/std_exit.p.o; ln -s std_exit.o $(LIBDIR)/std_exit.p.o
installopt-prof:
- cp stdlib.p.cmxa stdlib.p.a std_exit.p.cmx std_exit.p.o $(LIBDIR)
+ $(BSD_INSTALL_DATA) stdlib.p.cmxa stdlib.p.a std_exit.p.cmx std_exit.p.o $(LIBDIR)
cd $(LIBDIR); $(RANLIB) stdlib.p.a
stdlib.p.cmxa: $(OBJS:.cmo=.p.cmx)