Replace ifeq to declare install-progs dependencies by a variable.
authorDiego Biurrun <diego@biurrun.de>
Fri, 28 Mar 2008 01:58:53 +0000 (01:58 +0000)
committerDiego Biurrun <diego@biurrun.de>
Fri, 28 Mar 2008 01:58:53 +0000 (01:58 +0000)
Originally committed as revision 12613 to svn://svn.ffmpeg.org/ffmpeg/trunk

Makefile

index 3892707..2b865d9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -143,10 +143,9 @@ doc/%.1: doc/%.pod
 
 install: $(INSTALL_TARGETS-yes)
 
-ifeq ($(BUILD_SHARED),yes)
-install-progs: install-libs
-endif
-install-progs: $(PROGS)
+INSTALL_PROGS_TARGETS-$(BUILD_SHARED) = install-libs
+
+install-progs: $(PROGS) $(INSTALL_PROGS_TARGETS-yes)
        install -d "$(BINDIR)"
        install -c -m 755 $(PROGS) "$(BINDIR)"