Bug 462451: Don't be confused by .deps dirs in the source tree. r=bsmedberg
commit179bc1a219ff224eb1b30b89ed2021633c785cab
authorJim Blandy <jimb@mozilla.org>
Mon, 10 Nov 2008 20:55:46 +0000 (10 12:55 -0800)
committerJim Blandy <jimb@mozilla.org>
Mon, 10 Nov 2008 20:55:46 +0000 (10 12:55 -0800)
tree3e29de2b425c19074912973d8df3865bd9d77521
parentc6095ac8a9bee0e8e3ff9e0357887b4d1b6486f5
Bug 462451: Don't be confused by .deps dirs in the source tree. r=bsmedberg

$(MDDEPDIR) needs to be created in the build tree, but if make rules
list $(MDDEPDIR) as a dependency, then the VPATH search will tend to
find dependency directories in source trees if the source tree has
been configured in the past.  So use $(CURDIR)/$(MDDEPDIR) instead.

Some directory Makefiles have been adding $(MDDEPDIR) to MAKE_DIRS and
GARBAGE_DIRS explicitly, since they're not setting any of the
variables that would cause config/rules.mk to create $(MDDEPDIR)
automatically.  Those makefiles would have to use the $(CURDIR) trick
to defeat the VPATH search, too.  Instead, have rules.mk check an
additional variable NEED_MDDEPDIRS, and let the makefiles set that;
this keeps the magic in one place.
config/Makefile.in
config/rules.mk
js/src/config/rules.mk
xpcom/tests/static-checker/Makefile.in