# HG changeset patch # User diego # Date 1240186739 0 # Node ID 68dbcaf8e59499d5580742c8e33b73aedd4c78e0 # Parent 001484135b6fd8740140eb6d181dcb4d5c08b434 Introduce ADDSUFFIXES function and use it to simplify the ADD_ALL_DIRS and ADD_ALL_EXESUFS functions. diff -r 001484135b6f -r 68dbcaf8e594 Makefile --- 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 \