[MPlayer-cvslog] r32322 - trunk/Makefile

diego subversion at mplayerhq.hu
Mon Sep 20 14:31:09 CEST 2010


Author: diego
Date: Mon Sep 20 14:31:09 2010
New Revision: 32322

Log:
Simplify generation of dependency file list.

Modified:
   trunk/Makefile

Modified: trunk/Makefile
==============================================================================
--- trunk/Makefile	Mon Sep 20 14:30:35 2010	(r32321)
+++ trunk/Makefile	Mon Sep 20 14:31:09 2010	(r32322)
@@ -733,7 +733,8 @@ OBJS_MPLAYER   += $(OBJS_MPLAYER-yes)
 
 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)


More information about the MPlayer-cvslog mailing list