Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp657430rwj; Sat, 17 Dec 2022 15:07:22 -0800 (PST) X-Google-Smtp-Source: AMrXdXsinzF/K5dl4fUsj5aDUyuoVfkbswQZQ4QlEyDhhOoAF3rRe92KUdUcGd3BRo13picEuN0N X-Received: by 2002:a17:90a:7149:b0:219:9eaa:80ef with SMTP id g9-20020a17090a714900b002199eaa80efmr4040974pjs.14.1671318442541; Sat, 17 Dec 2022 15:07:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671318442; cv=none; d=google.com; s=arc-20160816; b=c46krNDkCFnP9KHQn1itNKFn2i5nnLHjUrLjBnX8J60o4DPAl73RXMhmtbBYOVrzJU huCwhdJfIML0setPk9GNSzuHNg8csJ09L/niFcEjeLBaQChmZibGZeOxA51oUliyWBM4 92Zt1pFRN8deSnl1zCj1BUA8fxxTWbIwggVgz9OQHbGRJJwIa+8ZXA8322EngH9dui4q xe++kF9o82P++DQ4LU9t/Z+jbqrU2v40Ir92HVyJ0qyfxcfTrnzH8nMi0ASKM+YTLpfp CPOzos4I0MUCUpAYPUj3TplzolezCcSeiUzH9A7FxJDPwNfKJfWAk7AwfrhsCLZWZWJ+ OzAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=AWLW65I8qjKVa0Ai5KVgxGMrzsCA8DgxU3k5GOi6ig8=; b=tB4A86kScYXX68/iHYuFkW1tfljS/4R8ctIc99N5aUAI7CcDCiJA4QiF1rGp6RHV3e +Kr1g7UG6Anu3InVohWYzZnjpdgqlB14dw0Xu8i8n/hENH4t5BYgtzxNHi5mlBn9LSsy CsQyi0cSQVbcRcqi60aD/SyJEhlHrP3MXAo30cZqc+q/0ohWQ670B4FIa8fMOfh0VzKh HKKwMGFBiVZGZKWfT0BsaKFKBj+pXrQTXlI6/Lw5zpm/IGBHmEHD4Yt3L6TcDIm6ldto eKp0gOFbVZFjuBZl8L6skUZCGUf0cEI2zKKf0GNy4ExKYLrKJu/jOaS3sVBJbYMin2R/ iXvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=JdOQaL6g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a4-20020a17090acb8400b0021f249ab6acsi11960363pju.139.2022.12.17.15.07.13; Sat, 17 Dec 2022 15:07:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=JdOQaL6g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229978AbiLQWwE (ORCPT + 70 others); Sat, 17 Dec 2022 17:52:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbiLQWwC (ORCPT ); Sat, 17 Dec 2022 17:52:02 -0500 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5E5AFCF3; Sat, 17 Dec 2022 14:52:01 -0800 (PST) Received: by mail-pf1-x42b.google.com with SMTP id w26so3971691pfj.6; Sat, 17 Dec 2022 14:52:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=AWLW65I8qjKVa0Ai5KVgxGMrzsCA8DgxU3k5GOi6ig8=; b=JdOQaL6gxjvrbbgRNKp7HR5WSKuNJ4so3SdZR78PQrOmjbj/sfRV5RZVhCflkAWioq aZMZ0w8DuM3ZudF2l7CgdK6nSreJHzRfEiQkVysAtcUd3sQuuOl1xNIsHVvzC/L41iWz oDsz8BlJaElg7p6IIGh4Fi2ZFdesTW+Dv06HimxsS2TUjwgUBascpgpicqqj7N+3/eoZ bNX2h6Xw7i2AsWyg0Kb6AtWqhVyI8lBrqY1K/5ZqZqxRazpr9TcgfDO2Y6BpKqfT8eBM FVQjjc/D84cT3noOlqH0UsGA18qNmaKyORlOWER2Nz+4lhT+3jTg0bOI/39qhVWG2Iqx /6HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=AWLW65I8qjKVa0Ai5KVgxGMrzsCA8DgxU3k5GOi6ig8=; b=gBu8k2+9PqEfqwMyxUba0LHSi17E3ndxkzWDxIhAMdTtuDWgEHaqHpxZzpyRgj10os 7BiOfisdrurQxjuvYYsiaHZTvvFlOka4h0bowK2tZc6ACh7AoOhhMSH7yk2M/9YknRvM tnP7bdXbiIT5u1HilvQdk8EXIBJONy0pPGxzOIwuGIMrNaXp+daHE/ut83Ff/5a9vNGd rcq6k8sxGJF6pKrT3itjHaFE3urc5sQdzdHA5maafTLWRZMLUIRMd1h9CPI/88JJPqhJ uzf0JY0V2LbXXx21XhzT9niQXy8jac5KpSLFqE3nhA/6a+hBY+H8mAuQ7veov0ns5Aqt 0aYA== X-Gm-Message-State: AFqh2kpTdi/bCLVTWDGQUgOfrbaUxY9iZBV/O0H/uRFADARoQng181k/ pRNpg02kG1gKmVQ/0n5QJGRSd34Q+ksb+A== X-Received: by 2002:aa7:953a:0:b0:57d:8b30:db0a with SMTP id c26-20020aa7953a000000b0057d8b30db0amr5053486pfp.9.1671317521218; Sat, 17 Dec 2022 14:52:01 -0800 (PST) Received: from WRT-WX9.. ([103.135.102.144]) by smtp.gmail.com with ESMTPSA id e26-20020a63745a000000b00477bfac06b7sm3508103pgn.34.2022.12.17.14.51.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Dec 2022 14:52:00 -0800 (PST) From: Changbin Du To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo Cc: Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Changbin Du , Andrii Nakryiko Subject: [PATCH] perf: makefile: add .DELETE_ON_ERROR special target Date: Sun, 18 Dec 2022 06:51:51 +0800 Message-Id: <20221217225151.90387-1-changbin.du@gmail.com> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Signed-off-by: Changbin Du Cc: Andrii Nakryiko --- tools/perf/Makefile.perf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf index 9b7886ce0674..13e7d26e77f0 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.37.2