Soft Patch Panel
 help / color / mirror / Atom feed
From: Yasufumi Ogawa <yasufum.o@gmail.com>
To: spp@dpdk.org, ferruh.yigit@intel.com, yasufum.o@gmail.com
Subject: [spp] [PATCH v2 1/2] makefile: update dist-clean task
Date: Tue, 21 Jan 2020 16:36:30 +0900
Message-ID: <20200121073631.12442-2-yasufum.o@gmail.com> (raw)
In-Reply-To: <20200121073631.12442-1-yasufum.o@gmail.com>

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 <yasufum.o@gmail.com>
---
 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


  reply	other threads:[~2020-01-21  7:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-17  9:02 [spp] [PATCH 0/2] Update makefile and gitignore yasufum.o
2020-01-17  9:02 ` [spp] [PATCH 1/2] makefile: update dist-clean task yasufum.o
2020-01-17  9:02 ` [spp] [PATCH 2/2] project: add gitignore entries for vhost PMD yasufum.o
2020-01-21  7:36 ` [spp] [PATCH v2 0/2] Update makefile and gitignore Yasufumi Ogawa
2020-01-21  7:36   ` Yasufumi Ogawa [this message]
2020-01-21  7:36   ` [spp] [PATCH v2 2/2] project: add gitignore entries for vhost PMD Yasufumi Ogawa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200121073631.12442-2-yasufum.o@gmail.com \
    --to=yasufum.o@gmail.com \
    --cc=ferruh.yigit@intel.com \
    --cc=spp@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Soft Patch Panel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/spp/0 spp/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 spp spp/ https://inbox.dpdk.org/spp \
		spp@dpdk.org
	public-inbox-index spp

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.spp


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git