aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2009-10-28 13:43:57 +0000
committerMax Horn2009-10-28 13:43:57 +0000
commiteffb6b60eb179c6b7b78ba30e20fd819a3b5bba9 (patch)
tree5b6387bd0836cbb18963f4157f8f84b16a906eb3
parent0b83a8eec03fac3fe3a7ea656be6ea8752477554 (diff)
downloadscummvm-rg350-effb6b60eb179c6b7b78ba30e20fd819a3b5bba9.tar.gz
scummvm-rg350-effb6b60eb179c6b7b78ba30e20fd819a3b5bba9.tar.bz2
scummvm-rg350-effb6b60eb179c6b7b78ba30e20fd819a3b5bba9.zip
BUILD: Reduce build overhead by marking *.d and *.mk files as .PHONY, thus preventing Make from futile searches for rule to rebuild those files
svn-id: r45462
-rw-r--r--Makefile.common2
-rw-r--r--tools/module.mk2
2 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.common b/Makefile.common
index 72fe3c7510..7f6c3c4082 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -134,6 +134,8 @@ endif
# Include the dependency tracking files.
-include $(wildcard $(addsuffix /*.d,$(DEPDIRS)))
+.PHONY: $(wildcard $(addsuffix /*.d,$(DEPDIRS))) $(addprefix $(srcdir)/, $(addsuffix /module.mk,$(MODULES))) \
+ $(srcdir)/$(port_mk) $(srcdir)/rules.mk $(srcdir)/engines/engines.mk
######################################################################
# Get the current version information
diff --git a/tools/module.mk b/tools/module.mk
index 4c1ea57da6..bf246ad0d6 100644
--- a/tools/module.mk
+++ b/tools/module.mk
@@ -18,6 +18,8 @@ TOOLS := \
include $(srcdir)/tools/*/module.mk
+.PHONY: $(srcdir)/tools/*/module.mk
+
# Make sure the 'all' / 'clean' targets build/clean the tools, too
#all:
clean: clean-tools