Skip to contentSkip to conversation

perf build: Disable make's built-in rules

tip:perf/core tip-bot for Jiri Olsa 1 participant 1 message Feb 18, 2015 perf events

lore
Share & tools
lore

tip-bot for Jiri Olsa

author merge bot
#0 lore raw
Commit-ID:  6dd280cdb8a2cf53deacd6240707ec2f22222b20
Gitweb:     http://git.kernel.org/tip/6dd280cdb8a2cf53deacd6240707ec2f22222b20
Author:     Jiri Olsa <[email protected]>
AuthorDate: Sat, 10 Jan 2015 21:43:32 +0100
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Thu, 12 Feb 2015 11:24:46 -0300

perf build: Disable make's built-in rules

We don't use any built-in rules, so we can disable make's checks for that and build faster.

---
 tools/perf/Makefile.perf | 4 ++++
 1 file changed, 4 insertions(+)
tools/perf/Makefile.perf +4 -0
index aa6a504..0a256fe 100644
@@ -84,6 +84,10 @@ ifneq ($(OUTPUT),)
 #$(info Determined 'OUTPUT' to be $(OUTPUT))
 endif
 
+# Do not use make's built-in rules
+# (this improves performance and avoids hard-to-debug behaviour);
+MAKEFLAGS += -r
+
 $(OUTPUT)PERF-VERSION-FILE: ../../.git/HEAD
 	@$(SHELL_PATH) util/PERF-VERSION-GEN $(OUTPUT)
 	@touch $(OUTPUT)PERF-VERSION-FILE