Skip to content

Commit 48c6c2c

Browse files
committed
Use cp -RpP instead of cp -a
OpenBSD does not support cp -a, and cp -RpP should work on all platforms.
1 parent bf188ae commit 48c6c2c

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,19 +83,19 @@ openlibm.pc: openlibm.pc.in Make.inc Makefile
8383

8484
install-static: libopenlibm.a
8585
mkdir -p $(DESTDIR)$(libdir)
86-
cp -f -a libopenlibm.a $(DESTDIR)$(libdir)/
86+
cp -RpP -f libopenlibm.a $(DESTDIR)$(libdir)/
8787

8888
install-shared: libopenlibm.$(OLM_MAJOR_MINOR_SHLIB_EXT)
8989
mkdir -p $(DESTDIR)$(shlibdir)
90-
cp -f -a libopenlibm.*$(SHLIB_EXT)* $(DESTDIR)$(shlibdir)/
90+
cp -RpP -f libopenlibm.*$(SHLIB_EXT)* $(DESTDIR)$(shlibdir)/
9191

9292
install-pkgconfig: openlibm.pc
9393
mkdir -p $(DESTDIR)$(pkgconfigdir)
94-
cp -f -a openlibm.pc $(DESTDIR)$(pkgconfigdir)/
94+
cp -RpP -f openlibm.pc $(DESTDIR)$(pkgconfigdir)/
9595

9696
install-headers:
9797
mkdir -p $(DESTDIR)$(includedir)/openlibm
98-
cp -f -a include/*.h $(DESTDIR)$(includedir)/openlibm
99-
cp -f -a src/*.h $(DESTDIR)$(includedir)/openlibm
98+
cp -RpP -f include/*.h $(DESTDIR)$(includedir)/openlibm
99+
cp -RpP -f src/*.h $(DESTDIR)$(includedir)/openlibm
100100

101101
install: install-static install-shared install-pkgconfig install-headers

0 commit comments

Comments
 (0)