]> git.sesse.net Git - ffmpeg/commitdiff
Simplify install-libs prerequisite generation.
authorDiego Biurrun <diego@biurrun.de>
Tue, 23 Oct 2007 06:51:44 +0000 (06:51 +0000)
committerDiego Biurrun <diego@biurrun.de>
Tue, 23 Oct 2007 06:51:44 +0000 (06:51 +0000)
Originally committed as revision 10844 to svn://svn.ffmpeg.org/ffmpeg/trunk

common.mak

index 823cc8ef59493e793786217398b545cc398c66ee..9030a6969f8952fc24ea8aa5a6cb398f3f789a95 100644 (file)
@@ -58,16 +58,12 @@ clean::
 distclean: clean
        rm -f .depend
 
-ifeq ($(BUILD_SHARED),yes)
-INSTLIBTARGETS += install-lib-shared
-endif
-ifeq ($(BUILD_STATIC),yes)
-INSTLIBTARGETS += install-lib-static
-endif
+INSTALL_TARGETS-$(BUILD_SHARED) += install-lib-shared
+INSTALL_TARGETS-$(BUILD_STATIC) += install-lib-static
 
 install: install-libs install-headers
 
-install-libs: $(INSTLIBTARGETS)
+install-libs: $(INSTALL_TARGETS-yes)
 
 install-lib-shared: $(SLIBNAME)
        install -d "$(SHLIBDIR)"