Install library using libtool install rather than libtool cp --remove-destination because the latter is non-portable

This commit is contained in:
Paul LeoNerd Evans 2012-05-10 16:00:01 +01:00
parent 1c816b753d
commit 29298167d1
1 changed files with 1 additions and 2 deletions

View File

@ -107,10 +107,9 @@ install-inc: termkey.h
install -d $(DESTDIR)$(LIBDIR)/pkgconfig install -d $(DESTDIR)$(LIBDIR)/pkgconfig
sed "s,@LIBDIR@,$(LIBDIR),;s,@INCDIR@,$(INCDIR)," <termkey.pc.in >$(DESTDIR)$(LIBDIR)/pkgconfig/termkey.pc sed "s,@LIBDIR@,$(LIBDIR),;s,@INCDIR@,$(INCDIR)," <termkey.pc.in >$(DESTDIR)$(LIBDIR)/pkgconfig/termkey.pc
# rm the old binary first in case it's still in use
install-lib: $(LIBRARY) install-lib: $(LIBRARY)
install -d $(DESTDIR)$(LIBDIR) install -d $(DESTDIR)$(LIBDIR)
$(LIBTOOL) --mode=install cp --remove-destination libtermkey.la $(DESTDIR)$(LIBDIR)/libtermkey.la $(LIBTOOL) --mode=install install libtermkey.la $(DESTDIR)$(LIBDIR)/libtermkey.la
install-man: install-man:
install -d $(DESTDIR)$(MAN3DIR) install -d $(DESTDIR)$(MAN3DIR)