Mercurial > mplayer.hg
changeset 29161:68dbcaf8e594
Introduce ADDSUFFIXES function and use it to simplify the
ADD_ALL_DIRS and ADD_ALL_EXESUFS functions.
author | diego |
---|---|
date | Mon, 20 Apr 2009 00:18:59 +0000 |
parents | 001484135b6f |
children | aaff2410e8a8 |
files | Makefile |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Mon Apr 20 00:16:53 2009 +0000 +++ b/Makefile Mon Apr 20 00:18:59 2009 +0000 @@ -784,8 +784,9 @@ ALLHEADERS = $(foreach dir,$(DIRS),$(wildcard $(dir)/*.h)) -ADD_ALL_DIRS = $(foreach dir,$(DIRS),$(foreach suffix,$(1),$(addsuffix $(suffix),$(dir)))) -ADD_ALL_EXESUFS = $(foreach file,$(1),$(foreach exesuf,$(EXESUFS_ALL),$(file) $(file)$(exesuf))) +ADDSUFFIXES = $(foreach suf,$(1),$(addsuffix $(suf),$(2))) +ADD_ALL_DIRS = $(call ADDSUFFIXES,$(1),$(DIRS)) +ADD_ALL_EXESUFS = $(1) $(call ADDSUFFIXES,$(EXESUFS_ALL),$(1)) FFMPEGPARTS = libavcodec \ libavformat \