36 lines
1.7 KiB
Plaintext
36 lines
1.7 KiB
Plaintext
$NetBSD: patch-otherlibs_systhreads_Makefile,v 1.3 2014/10/09 19:08:28 jaapb Exp $
|
|
|
|
Use BSD_INSTALL_* instead of mkdir and cp
|
|
--- otherlibs/systhreads/Makefile.orig 2014-04-29 11:56:17.000000000 +0000
|
|
+++ otherlibs/systhreads/Makefile
|
|
@@ -77,21 +77,21 @@ INSTALL_STUBLIBDIR=$(DESTDIR)$(STUBLIBDI
|
|
|
|
install:
|
|
if test -f dllthreads.so; then \
|
|
- cp dllthreads.so $(INSTALL_STUBLIBDIR)/dllthreads.so; fi
|
|
- cp libthreads.a $(INSTALL_LIBDIR)/libthreads.a
|
|
+ $(BSD_INSTALL_LIB) dllthreads.so $(INSTALL_STUBLIBDIR)/dllthreads.so; fi
|
|
+ $(BSD_INSTALL_DATA) libthreads.a $(INSTALL_LIBDIR)/libthreads.a
|
|
cd $(INSTALL_LIBDIR); $(RANLIB) libthreads.a
|
|
if test -d $(INSTALL_LIBDIR)/threads; then :; \
|
|
- else mkdir $(INSTALL_LIBDIR)/threads; fi
|
|
- cp $(THREAD_OBJS:.cmo=.cmi) threads.cma $(INSTALL_LIBDIR)/threads
|
|
+ else $(BSD_INSTALL_DATA_DIR) $(INSTALL_LIBDIR)/threads; fi
|
|
+ $(BSD_INSTALL_DATA) $(THREAD_OBJS:.cmo=.cmi) threads.cma $(INSTALL_LIBDIR)/threads
|
|
rm -f $(INSTALL_LIBDIR)/threads/stdlib.cma
|
|
- cp thread.mli mutex.mli condition.mli event.mli threadUnix.mli \
|
|
+ $(BSD_INSTALL_DATA) thread.mli mutex.mli condition.mli event.mli threadUnix.mli \
|
|
$(INSTALL_LIBDIR)
|
|
- cp threads.h $(INSTALL_LIBDIR)/caml/threads.h
|
|
+ $(BSD_INSTALL_DATA) threads.h $(INSTALL_LIBDIR)/caml/threads.h
|
|
|
|
installopt:
|
|
- cp libthreadsnat.a $(INSTALL_LIBDIR)/libthreadsnat.a
|
|
+ $(BSD_INSTALL_DATA) libthreadsnat.a $(INSTALL_LIBDIR)/libthreadsnat.a
|
|
cd $(INSTALL_LIBDIR); $(RANLIB) libthreadsnat.a
|
|
- cp $(THREAD_OBJS:.cmo=.cmx) threads.cmxa threads.a $(INSTALL_LIBDIR)/threads
|
|
+ $(BSD_INSTALL_DATA) $(THREAD_OBJS:.cmo=.cmx) threads.cmxa threads.a $(INSTALL_LIBDIR)/threads
|
|
cd $(INSTALL_LIBDIR)/threads; $(RANLIB) threads.a
|
|
|
|
.SUFFIXES: .ml .mli .cmo .cmi .cmx
|