Use cp -RpP instead of cp -a

OpenBSD does not support cp -a, and cp -RpP should work on all
platforms.
This commit is contained in:
Alex Arslan 2018-04-06 14:06:14 -07:00
parent bf188aeb23
commit 48c6c2c2ac
No known key found for this signature in database
GPG key ID: EC409F3AF54AD659

View file

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