changeset 26488:a347dc8f3dcd

Include mpcommon.mak before declaring dependencies, which require mpcommon.mak.
author diego
date Thu, 24 Apr 2008 17:41:19 +0000
parents 1b0dfff7c323
children 925b2b7a1f34
files Makefile
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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