[x264-devel] Fix install/uninstall shared libs if SYS is WINDOWS/CYGWIN
Oka Motofumi
git at videolan.org
Wed Sep 21 21:34:40 CEST 2011
x264 | branch: master | Oka Motofumi <chikuzen.mo at gmail.com> | Mon Sep 5 11:50:37 2011 +0900| [03a542a6ca08ba3f96d9e1bf0e36fa21dc9e7762] | committer: Jason Garrett-Glaser
Fix install/uninstall shared libs if SYS is WINDOWS/CYGWIN
> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=03a542a6ca08ba3f96d9e1bf0e36fa21dc9e7762
---
Makefile | 19 ++++++++++++-------
1 files changed, 12 insertions(+), 7 deletions(-)
diff --git a/Makefile b/Makefile
index 5831091..560ba90 100644
--- a/Makefile
+++ b/Makefile
@@ -228,18 +228,23 @@ install-lib-static: lib-static install-lib-dev
$(if $(RANLIB), $(RANLIB) $(DESTDIR)$(libdir)/$(LIBX264))
install-lib-shared: lib-shared install-lib-dev
-ifeq ($(SYS),WINDOWS)
- $(if $(SONAME), install -m 755 $(SONAME) $(DESTDIR)$(bindir))
-else
- $(if $(SONAME), ln -f -s $(SONAME) $(DESTDIR)$(libdir)/libx264.$(SOSUFFIX))
- $(if $(SONAME), install -m 755 $(SONAME) $(DESTDIR)$(libdir))
+ifneq ($(IMPLIBNAME),)
+ install -d $(DESTDIR)$(bindir)
+ install -m 755 $(SONAME) $(DESTDIR)$(bindir)
+ install -m 644 $(IMPLIBNAME) $(DESTDIR)$(libdir)
+else ifneq ($(SONAME),)
+ ln -f -s $(SONAME) $(DESTDIR)$(libdir)/libx264.$(SOSUFFIX)
+ install -m 755 $(SONAME) $(DESTDIR)$(libdir)
endif
- $(if $(IMPLIBNAME), install -m 644 $(IMPLIBNAME) $(DESTDIR)$(libdir))
uninstall:
rm -f $(DESTDIR)$(includedir)/x264.h $(DESTDIR)$(includedir)/x264_config.h $(DESTDIR)$(libdir)/libx264.a
rm -f $(DESTDIR)$(bindir)/x264$(EXE) $(DESTDIR)$(libdir)/pkgconfig/x264.pc
- $(if $(SONAME), rm -f $(DESTDIR)$(libdir)/$(SONAME) $(DESTDIR)$(libdir)/libx264.$(SOSUFFIX))
+ifneq ($(IMPLIBNAME),)
+ rm -f $(DESTDIR)$(bindir)/$(SONAME) $(DESTDIR)$(libdir)/$(IMPLIBNAME)
+else ifneq ($(SONAME),)
+ rm -f $(DESTDIR)$(libdir)/$(SONAME) $(DESTDIR)$(libdir)/libx264.$(SOSUFFIX)
+endif
etags: TAGS
More information about the x264-devel
mailing list