From: Changbin Du Date: Sat, 17 Dec 2022 22:51:51 +0000 (+0800) Subject: perf tools: Add .DELETE_ON_ERROR special Makefile target to clean up partially update... X-Git-Tag: v6.6.7~3829^2~49 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0c0a0db87e1c159aa7a2a52bfbec0be604c65f86;p=platform%2Fkernel%2Flinux-starfive.git perf tools: Add .DELETE_ON_ERROR special Makefile target to clean up partially updated files on error. As kbuild, this adds .DELETE_ON_ERROR special target to clean up partially updated files on error. A known issue is the empty vmlinux.h generted by bpftool if it failed to dump btf info. Reviewed-by: Leo Yan Signed-off-by: Changbin Du Cc: Alexander Shishkin Cc: Andrii Nakryiko Cc: Ingo Molnar Cc: Jiri Olsa Cc: Mark Rutland Cc: Namhyung Kim Cc: Peter Zijlstra Link: https://lore.kernel.org/r/20221217225151.90387-1-changbin.du@gmail.com Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf index 9b7886c..13e7d26 100644 --- a/tools/perf/Makefile.perf +++ b/tools/perf/Makefile.perf @@ -1151,3 +1151,6 @@ FORCE: .PHONY: archheaders endif # force_fixdep + +# Delete partially updated (corrupted) files on error +.DELETE_ON_ERROR: