Mercurial > mplayer.hg
diff Makefile @ 26432:7f5696224182
per-file dependencies (for the non-recursive parts)
author | diego |
---|---|
date | Fri, 18 Apr 2008 22:49:17 +0000 |
parents | a6a95779d80b |
children | ce655dcca44b |
line wrap: on
line diff
--- a/Makefile Fri Apr 18 21:47:51 2008 +0000 +++ b/Makefile Fri Apr 18 22:49:17 2008 +0000 @@ -234,9 +234,10 @@ all: $(ALL_PRG) -.depend: help_mp.h version.h codecs.conf.h -dep depend: - for part in $(PARTS); do $(MAKE) -C $$part depend; done +DEPS = $(SRCS_COMMON:.c=.d) $(SRCS_MPLAYER:.c=.d) $(SRCS_MENCODER:.c=.d) +$(DEPS): help_mp.h version.h codecs.conf.h +dep depend: $(DEPS) + for part in $(PARTS); do $(MAKE) -C $$part .depend; done include mpcommon.mak @@ -395,6 +396,7 @@ for part in $(PARTS); do $(MAKE) -C $$part distclean; done $(MAKE) -C TOOLS distclean -rm -f configure.log config.mak config.h + rm -f $(foreach dir,$(DIRS),$(foreach suffix,/*.d, $(addsuffix $(suffix),$(dir)))) strip: strip -s $(ALL_PRG)