[FFmpeg-cvslog] Makefile: simplify setting of some variables

Mans Rullgard git
Fri Jan 21 20:40:04 CET 2011


ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Thu Jan 20 02:04:19 2011 +0000| [d094258f810ff0dcc9c6303ba56fda98b8c7edec] | committer: Michael Niedermayer

Makefile: simplify setting of some variables

Signed-off-by: Mans Rullgard <mans at mansr.com>
(cherry picked from commit 583fcb528cb13b271860529a464abc6304e063e3)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d094258f810ff0dcc9c6303ba56fda98b8c7edec
---

 Makefile |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/Makefile b/Makefile
index d158507..98ec5f5 100644
--- a/Makefile
+++ b/Makefile
@@ -9,20 +9,20 @@ PROGS-$(CONFIG_FFPLAY)   += ffplay
 PROGS-$(CONFIG_FFPROBE)  += ffprobe
 PROGS-$(CONFIG_FFSERVER) += ffserver
 
-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)))
-PODPAGES    = $(addprefix doc/, $(addsuffix .pod, $(PROGS-yes)))
-HTMLPAGES   = $(addprefix doc/, $(addsuffix .html, $(PROGS-yes)))
+PROGS      := $(PROGS-yes:%=%$(EXESUF))
+PROGS_G     = $(PROGS-yes:%=%_g$(EXESUF))
+OBJS        = $(PROGS-yes:%=%.o) cmdutils.o
+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)
 
 BASENAMES   = ffmpeg ffplay ffprobe ffserver
-ALLPROGS    = $(addsuffix   $(EXESUF), $(BASENAMES))
-ALLPROGS_G  = $(addsuffix _g$(EXESUF), $(BASENAMES))
-ALLMANPAGES = $(addsuffix .1, $(BASENAMES))
-ALLHTMLPAGES= $(addsuffix .html, $(BASENAMES))
+ALLPROGS    = $(BASENAMES:%=%$(EXESUF))
+ALLPROGS_G  = $(BASENAMES:%=_g$(EXESUF))
+ALLMANPAGES = $(BASENAMES:%=%.1)
+ALLHTMLPAGES= $(BASENAMES:%=%.html)
 
 FFLIBS-$(CONFIG_AVDEVICE) += avdevice
 FFLIBS-$(CONFIG_AVFILTER) += avfilter




More information about the ffmpeg-cvslog mailing list