--- Makefile.orig 2018-06-18 21:22:47 UTC +++ Makefile @@ -83,19 +83,19 @@ openlibm.pc: openlibm.pc.in Make.inc Makefile install-static: libopenlibm.a mkdir -p $(DESTDIR)$(libdir) - cp -RpP -f libopenlibm.a $(DESTDIR)$(libdir)/ + $(BSD_INSTALL_DATA) libopenlibm.a $(DESTDIR)$(libdir)/ install-shared: libopenlibm.$(OLM_MAJOR_MINOR_SHLIB_EXT) mkdir -p $(DESTDIR)$(shlibdir) - cp -RpP -f libopenlibm.*$(SHLIB_EXT)* $(DESTDIR)$(shlibdir)/ + $(BSD_INSTALL_LIB) libopenlibm.*$(SHLIB_EXT)* $(DESTDIR)$(shlibdir)/ install-pkgconfig: openlibm.pc mkdir -p $(DESTDIR)$(pkgconfigdir) - cp -RpP -f openlibm.pc $(DESTDIR)$(pkgconfigdir)/ + $(BSD_INSTALL_DATA) openlibm.pc $(DESTDIR)$(pkgconfigdir)/ install-headers: mkdir -p $(DESTDIR)$(includedir)/openlibm - cp -RpP -f include/*.h $(DESTDIR)$(includedir)/openlibm - cp -RpP -f src/*.h $(DESTDIR)$(includedir)/openlibm + $(BSD_INSTALL_DATA) include/*.h $(DESTDIR)$(includedir)/openlibm + $(BSD_INSTALL_DATA) src/*.h $(DESTDIR)$(includedir)/openlibm install: install-static install-shared install-pkgconfig install-headers