# HG changeset patch # User diego # Date 1284985869 0 # Node ID 0a696d3e1d016ebb8eb0871097d33cbd8125b40e # Parent b54535b624d60425b72f5ead90a165d3139bbeaa Simplify generation of dependency file list. diff -r b54535b624d6 -r 0a696d3e1d01 Makefile --- a/Makefile Mon Sep 20 12:30:35 2010 +0000 +++ b/Makefile Mon Sep 20 12:31:09 2010 +0000 @@ -733,7 +733,8 @@ MENCODER_DEPS = $(OBJS_MENCODER) $(OBJS_COMMON) $(COMMON_LIBS) MPLAYER_DEPS = $(OBJS_MPLAYER) $(OBJS_COMMON) $(COMMON_LIBS) -DEP_FILES = $(patsubst %.S,%.d,$(patsubst %.cpp,%.d,$(patsubst %.c,%.d,$(SRCS_COMMON) $(SRCS_MPLAYER:.m=.d) $(SRCS_MENCODER)))) +DEP_FILES = $(SRCS_COMMON) $(SRCS_MPLAYER) $(SRCS_MENCODER) +$(foreach suffix,.c .cpp .m .S,$(eval DEP_FILES := $(DEP_FILES:$(suffix)=.d))) ALL_PRG-$(MPLAYER) += mplayer$(EXESUF) ALL_PRG-$(MENCODER) += mencoder$(EXESUF)