mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-25 13:00:22 -04:00
37 lines
1.7 KiB
Plaintext
37 lines
1.7 KiB
Plaintext
$NetBSD: patch-otherlibs_systhreads_Makefile,v 1.5 2016/05/05 08:12:01 jaapb Exp $
|
|
|
|
Use BSD_INSTALL_* instead of mkdir and cp
|
|
|
|
--- otherlibs/systhreads/Makefile.orig 2016-04-01 12:53:41.000000000 +0000
|
|
+++ otherlibs/systhreads/Makefile
|
|
@@ -86,21 +86,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 \
|
|
+ $(BSD_INSTALL_DATA) $(THREAD_OBJS:.cmo=.cmx) threads.cmxa threads.a \
|
|
$(INSTALL_LIBDIR)/threads
|
|
cd $(INSTALL_LIBDIR)/threads && $(RANLIB) threads.a
|
|
|