From 13b1c80b05a7bf5802c30fc34826e8c3f9f6d901 Mon Sep 17 00:00:00 2001
From: Diego Biurrun <diego@biurrun.de>
Date: Fri, 18 Sep 2009 10:24:47 +0000
Subject: [PATCH] Introduce a variable for all targets in the tools
 subdirectory.

Originally committed as revision 19908 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 1d8705580b2..66c756c51fb 100644
--- a/Makefile
+++ b/Makefile
@@ -12,6 +12,7 @@ PROGS       = $(addsuffix   $(EXESUF), $(PROGS-yes))
 PROGS_G     = $(addsuffix _g$(EXESUF), $(PROGS-yes))
 OBJS        = $(addsuffix .o,          $(PROGS-yes)) cmdutils.o
 MANPAGES    = $(addprefix doc/, $(addsuffix .1, $(PROGS-yes)))
+TOOLS       = $(addprefix tools/, $(addsuffix $(EXESUF), cws2fws pktdumper qt-faststart trasher))
 
 BASENAMES   = ffmpeg ffplay ffserver
 ALLPROGS    = $(addsuffix   $(EXESUF), $(BASENAMES))
@@ -77,7 +78,7 @@ ffplay.o ffplay.d: CFLAGS += $(SDL_CFLAGS)
 
 cmdutils.o cmdutils.d: version.h
 
-alltools: $(addsuffix $(EXESUF),$(addprefix tools/, cws2fws pktdumper qt-faststart trasher))
+alltools: $(TOOLS)
 
 documentation: $(addprefix doc/, developer.html faq.html ffmpeg-doc.html ffserver-doc.html \
                                  ffplay-doc.html general.html $(ALLMANPAGES))
@@ -126,7 +127,7 @@ clean:: testclean
 	rm -f doc/*.html doc/*.pod doc/*.1
 	rm -f tests/seek_test$(EXESUF) tests/seek_test.o
 	rm -f $(addprefix tests/,$(addsuffix $(HOSTEXESUF),audiogen videogen rotozoom tiny_psnr))
-	rm -f $(addprefix tools/,$(addsuffix $(EXESUF),cws2fws pktdumper qt-faststart trasher))
+	rm -f $(TOOLS)
 
 distclean::
 	rm -f $(DISTCLEANSUFFIXES)
-- 
GitLab