From 0c0a0db87e1c159aa7a2a52bfbec0be604c65f86 Mon Sep 17 00:00:00 2001 From: Changbin Du Date: Sun, 18 Dec 2022 06:51:51 +0800 Subject: [PATCH] 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 --- tools/perf/Makefile.perf | 3 +++ 1 file changed, 3 insertions(+) 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: -- 2.7.4