]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: Fix parallel build including 'clean' target
authorJiri Olsa <jolsa@redhat.com>
Thu, 4 Feb 2016 11:30:36 +0000 (12:30 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 4 Feb 2016 18:53:16 +0000 (15:53 -0300)
commitf8451f26213a1be6482c3b5f705928a93f5e4941
tree8554164c23d57ecd5590b79ecfd7797730e7f1f9
parenta7c79b6fa4ac057494176d98362eb532f0bec989
perf tools: Fix parallel build including 'clean' target

Do not parallelize 'clean' with other targets, figure out if it is
present and do it first, then the other targets.

Noticed with:

  tools/perf> make -j24 clean all

   LD       arch/libperf-in.o
   LD       plugin_xen-in.o
 arch//libperf-in.o: file not recognized: File truncated
 make[3]: *** [arch/libperf-in.o] Error 1
 make[2]: *** [arch] Error 2
 make[2]: *** Waiting for unfinished jobs....
   AR       libapi.a

Reported-and-Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Acked-by: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-kb0qs29zbz7hxn32mc5zbsoz@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Makefile