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 823cc8e..9030a69 100644 (file)
@@ -58,16 +58,12 @@ clean::
 distclean: clean
        rm -f .depend
 
 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: install-libs install-headers
 
-install-libs: $(INSTLIBTARGETS)
+install-libs: $(INSTALL_TARGETS-yes)
 
 install-lib-shared: $(SLIBNAME)
        install -d "$(SHLIBDIR)"
 
 install-lib-shared: $(SLIBNAME)
        install -d "$(SHLIBDIR)"