diff Makefile @ 26489:925b2b7a1f34

dependency generation infrastructure for C++ files
author diego
date Thu, 24 Apr 2008 21:46:50 +0000
parents a347dc8f3dcd
children 17650f2caef1
line wrap: on
line diff
--- a/Makefile	Thu Apr 24 17:41:19 2008 +0000
+++ b/Makefile	Thu Apr 24 21:46:50 2008 +0000
@@ -494,7 +494,7 @@
 
 include mpcommon.mak
 
-DEPS = $(SRCS_COMMON:.c=.d) $(SRCS_MPLAYER:.c=.d) $(SRCS_MENCODER:.c=.d)
+DEPS = $(patsubst %.cpp,%.d,$(patsubst %.c,%.d,$(SRCS_COMMON) $(SRCS_MPLAYER) $(SRCS_MENCODER)))
 $(DEPS) recurse: help_mp.h version.h codecs.conf.h
 dep depend: $(DEPS)
 	for part in $(PARTS); do $(MAKE) -C $$part .depend; done