3 # Clear out the built-in rules GNU make defines by default (such as .o targets),
4 # so that we pass through all targets to Makefile.perf:
9 # Do a parallel build with multiple jobs, based on the number of CPUs online
10 # in this system: 'make -j8' on a 8-CPU system, etc.
12 # (To override it, run 'make JOBS=1' and similar.)
15 JOBS := $(shell grep -c ^processor /proc/cpuinfo 2>/dev/null)
24 @printf ' BUILD: Doing '\''make \033[33m-j'$(JOBS)'\033[m'\'' parallel build\n'
28 @$(MAKE) -f Makefile.perf --no-print-directory -j$(JOBS) $@
32 # Needed if no target specified:
39 # The clean target is not really parallel, don't print the jobs info:
45 # All other targets get passed through: