summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 9988717fbc..8e90f8233c 100644
--- a/Makefile
+++ b/Makefile
@@ -234,9 +234,10 @@ DIRS = gui \
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 @@ distclean:: doxygen_clean
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)