# HG changeset patch # User diego # Date 1209397356 0 # Node ID 3cce5bfc52c0419d25a2cc5d7ba9d9ba18d735a8 # Parent 04749d95b43d6aec73a88980b1379efc60142686 Remove code for .depend generation, inclusion and related hacks. diff -r 04749d95b43d -r 3cce5bfc52c0 Makefile --- a/Makefile Mon Apr 28 15:41:30 2008 +0000 +++ b/Makefile Mon Apr 28 15:42:36 2008 +0000 @@ -678,9 +678,6 @@ recurse: for part in $(PARTS); do $(MAKE) -C $$part; done -# Hack to keep .depend from being generated at the top level unnecessarily. -DEPS = foo - include mpcommon.mak DEPS = $(filter-out %.S,$(patsubst %.cpp,%.d,$(patsubst %.c,%.d,$(SRCS_COMMON) $(SRCS_MPLAYER:.m=.d) $(SRCS_MENCODER)))) diff -r 04749d95b43d -r 3cce5bfc52c0 mpcommon.mak --- a/mpcommon.mak Mon Apr 28 15:41:30 2008 +0000 +++ b/mpcommon.mak Mon Apr 28 15:42:36 2008 +0000 @@ -27,10 +27,7 @@ rm -f *.o *.a *.ho *~ distclean:: clean - rm -f *.d .depend test test2 - -.depend: $(SRCS_COMMON) $(SRCS_MPLAYER) $(SRCS_MENCODER) - $(MPDEPEND_CMD) > $@ + rm -f *.d test test2 %.d: %.c $(MPDEPEND_CMD) > $@ @@ -50,10 +47,4 @@ ALLHEADERS = $(wildcard *.h) checkheaders: $(ALLHEADERS:.h=.ho) -# Hack to keep .depend from being generated at the top level unnecessarily. -ifndef DEPS -DEPS = .depend -endif --include $(DEPS) - .PHONY: libs *clean dep depend