From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id E772BA052E for ; Tue, 21 Jan 2020 08:36:40 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D51963576; Tue, 21 Jan 2020 08:36:40 +0100 (CET) Received: from mail-pf1-f195.google.com (mail-pf1-f195.google.com [209.85.210.195]) by dpdk.org (Postfix) with ESMTP id 2C34F3576 for ; Tue, 21 Jan 2020 08:36:39 +0100 (CET) Received: by mail-pf1-f195.google.com with SMTP id z16so1052447pfk.0 for ; Mon, 20 Jan 2020 23:36:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=yK2edBRjK0aTnhQ0ZaNODC4K/zZD5yJn031icbPxzSk=; b=atFqxqSgHJItZyHKpzyq8XmCa4nWrUh45KOyWG5v9i+ZSaHRq3guO6WAa7uH1y/I1m vBw+aWP3icQeb+nfYq7HjMV7PlUTAus01khCKztAvFaNpwT5AeWOx44hTHZ9q3E9/KVM 3k85QL/Ki+hBCwGtEXHCWW1H4xSz5DblH+1Fr0TiPQBZDXaz8LL/4r9V9raW7ZWdOBTk S0sOJ11acag8Z/YAiyyZYZS71Lcn1D62W+0zkNShUePS9R8DkAJxQXXTuGjhT0ZTmiFO SokyFWlazI2ls5vtGcbbIWFaLfwb54oZR84K+0vDRqdPe2V33xVYTHE/dqP8WZS2DOm2 NBWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=yK2edBRjK0aTnhQ0ZaNODC4K/zZD5yJn031icbPxzSk=; b=bdG4fiU+xPH3RbGRpyCrVQjxTRI9Gcl2wa6o9qfdN7sWisdFZ35QUW2GK0dMCIBlm6 n+9Mak+h0IfVmDp0vNpxrVpyag6Dnjhkcbh57KZ7mYW7O7kv6TfH+7kSHTK2DslU9m0j wU8w1IF+bNEENLHaM7weD+r3GKcDZ821mMkv/2vCL5m/rzPLcE5/gy8a44/twob7PmHw A4HQFcwvF2Ub1jHmnmYiqYbM1noK1FKVjgPwHKTVkLzZ8DwukoHmvpyEpcHbYBiwrcJy iOaK1V9pALQhoHO7VWtMDxC4FtQzHnsu4vsaeUXjQ6EKi1BKMwVOW+hxhjY3Dz/E6Ddq SBJQ== X-Gm-Message-State: APjAAAWbV3pmTbbceeSSSAAT5x7yLqkUXK5CxmufdP3r+F+5ppUNVoMK HJAWLiGPlyI6LknF5rTOFnXAP7q6 X-Google-Smtp-Source: APXvYqwjthiS84gSOn3JAYhAqi88+SZDZ4E76Q8p/9eM/emOCGuvGMOEHLLsWkJitOSR/h/sNcTA1Q== X-Received: by 2002:a63:48d:: with SMTP id 135mr3993047pge.66.1579592198258; Mon, 20 Jan 2020 23:36:38 -0800 (PST) Received: from localhost.localdomain ([2400:4050:c8c2:de00:394a:f092:61ac:c869]) by smtp.gmail.com with ESMTPSA id b24sm41597380pfo.55.2020.01.20.23.36.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jan 2020 23:36:37 -0800 (PST) From: Yasufumi Ogawa To: spp@dpdk.org, ferruh.yigit@intel.com, yasufum.o@gmail.com Date: Tue, 21 Jan 2020 16:36:30 +0900 Message-Id: <20200121073631.12442-2-yasufum.o@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200121073631.12442-1-yasufum.o@gmail.com> References: <20200117090243.43456-1-yasufum.o@gmail.com> <20200121073631.12442-1-yasufum.o@gmail.com> Subject: [spp] [PATCH v2 1/2] makefile: update dist-clean task X-BeenThere: spp@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Soft Patch Panel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: spp-bounces@dpdk.org Sender: "spp" This patch is to add drivers to dist-clean task. In this update, dist-clean is divided into two tasks. It is because files named as `_postclean` is generated in `src/drivers/*/` directory after cleaning and still remained. First task named as `_dist-clean` is for removing files generated while compilation, and second one is for removing `_postclean`. Signed-off-by: Yasufumi Ogawa --- GNUmakefile | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 274f709..9c0cea9 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -21,15 +21,24 @@ showversion: # Compile RST documents DOC_ROOT = docs/guides +# Clean all files generated while compilation. It consists of two +# tasks, _dist-clean and dist-clean. First one is for removing the +# generated files, and second one is just for removing `_postclean` +# which is generated after the first task. .PHONY: dist-clean -dist-clean: +dist-clean: _dist-clean + rm -f $(wildcard src/drivers/*/_postclean) + +.PHONY: _dist-clean +_dist-clean: make clean rm -rf $(wildcard src/*/$(RTE_TARGET)) - rm -rf $(wildcard src/*/*.pyc) - rm -rf $(wildcard src/*/__pycache__) rm -rf $(wildcard src/*/shared) - rm -rf $(wildcard src/mirror/vf) - rm -rf $(wildcard src/pcap/vf) + rm -rf $(wildcard src/drivers/*/$(RTE_TARGET)) + rm -f $(wildcard src/*/*.pyc) + rm -f $(wildcard src/*/*/*.pyc) + rm -rf $(wildcard src/*/__pycache__) + rm -rf $(wildcard src/*/*/__pycache__) .PHONY: doc doc: doc-all -- 2.17.1