# HG changeset patch # User diego # Date 1209058879 0 # Node ID a347dc8f3dcdd13985be5678c05b5f1e3cfbd768 # Parent 1b0dfff7c323e58a4c66cc4b725d0a0a22d8e624 Include mpcommon.mak before declaring dependencies, which require mpcommon.mak. diff -r 1b0dfff7c323 -r a347dc8f3dcd Makefile --- a/Makefile Thu Apr 24 17:26:57 2008 +0000 +++ b/Makefile Thu Apr 24 17:41:19 2008 +0000 @@ -489,13 +489,16 @@ 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 = $(SRCS_COMMON:.c=.d) $(SRCS_MPLAYER:.c=.d) $(SRCS_MENCODER:.c=.d) $(DEPS) recurse: help_mp.h version.h codecs.conf.h dep depend: $(DEPS) for part in $(PARTS); do $(MAKE) -C $$part .depend; done -include mpcommon.mak - CFLAGS := $(subst -I..,-I.,$(CFLAGS)) define RECURSIVE_RULE