[FFmpeg-devel] [PATCH 2/2] Makefile: simplify test tools handling

Mans Rullgard mans
Thu Jan 20 23:55:02 CET 2011


Signed-off-by: Mans Rullgard <mans at mansr.com>
---
 Makefile |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 98ec5f5..a1fd7b4 100644
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,8 @@ MANPAGES    = $(PROGS-yes:%=doc/%.1)
 PODPAGES    = $(PROGS-yes:%=doc/%.pod)
 HTMLPAGES   = $(PROGS-yes:%=doc/%.html)
 TOOLS       = $(addprefix tools/, $(addsuffix $(EXESUF), cws2fws pktdumper probetest qt-faststart trasher))
-HOSTPROGS   = $(addprefix tests/, audiogen videogen rotozoom tiny_psnr base64)
+TESTPROGS   = audiogen videogen rotozoom tiny_psnr base64
+HOSTPROGS  := $(TESTPROGS:%=tests/%)
 
 BASENAMES   = ffmpeg ffplay ffprobe ffserver
 ALLPROGS    = $(BASENAMES:%=%$(EXESUF))
@@ -162,7 +163,7 @@ testclean:
 	$(RM) -r tests/vsynth1 tests/vsynth2 tests/data
 	$(RM) $(addprefix tests/,$(CLEANSUFFIXES))
 	$(RM) tests/seek_test$(EXESUF) tests/seek_test.o
-	$(RM) $(addprefix tests/,$(addsuffix $(HOSTEXESUF),audiogen videogen rotozoom tiny_psnr base64))
+	$(RM) $(TESTPROGS:%=tests/%$(HOSTEXESUF))
 
 clean:: testclean
 	$(RM) $(ALLPROGS) $(ALLPROGS_G)
-- 
1.7.3.5




More information about the ffmpeg-devel mailing list