summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.common7
-rw-r--r--Makefile.rules7
2 files changed, 14 insertions, 0 deletions
diff --git a/Makefile.common b/Makefile.common
index f3316ba962..afe6990256 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -162,6 +162,13 @@ prdirs::
echo "LLVM Source Root: " $(LLVM_SRC_ROOT);
echo "LLVM Object Root: " $(LLVM_OBJ_ROOT);
+#
+# Mark all of these targets as phony. This will hopefully speed up builds
+# slightly since GNU Make will not try to find implicit rules for targets
+# which are marked as Phony.
+#
+.PHONY: all dynamic clean distclean install test bytecode prdirs
+
###########################################################################
# Miscellaneous paths and commands:
# This section defines various configuration macros, such as where
diff --git a/Makefile.rules b/Makefile.rules
index f3316ba962..afe6990256 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -162,6 +162,13 @@ prdirs::
echo "LLVM Source Root: " $(LLVM_SRC_ROOT);
echo "LLVM Object Root: " $(LLVM_OBJ_ROOT);
+#
+# Mark all of these targets as phony. This will hopefully speed up builds
+# slightly since GNU Make will not try to find implicit rules for targets
+# which are marked as Phony.
+#
+.PHONY: all dynamic clean distclean install test bytecode prdirs
+
###########################################################################
# Miscellaneous paths and commands:
# This section defines various configuration macros, such as where