Separate library install into static and shared installation.
[ffmpeg.git] / libavcodec / libpostproc / Makefile
index 8f32bb6..2f7ec1a 100644 (file)
@@ -48,23 +48,20 @@ $(LIB): $(OBJS)
        $(AR) rc $@ $(OBJS)
        $(RANLIB) $@
 
-install: all
-ifeq ($(BUILD_SHARED),yes)
+
+install-lib-shared: $(SLIBNAME)
 ifeq ($(CONFIG_WIN32),yes)
        install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)"
 else
-       install -d $(libdir)
        install $(INSTALLSTRIP) -m 755 $(SLIBNAME) \
                $(libdir)/$(SLIBNAME_WITH_VERSION)
        ln -sf $(SLIBNAME_WITH_VERSION) \
                $(libdir)/$(SLIBNAME_WITH_MAJOR)
        ln -sf $(SLIBNAME_WITH_VERSION) \
                $(libdir)/$(SLIBNAME)
-       $(LDCONFIG) || true
-endif
 endif
 
-installlib: all
+install-lib-static: $(LIB)
        install -m 644 $(LIB) "$(libdir)"
 
 install-headers: