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

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

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
+	rm -f $(wildcard src/drivers/*/_postclean)
+.PHONY: _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

  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:

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

  git send-email \ \ \ \ \

* 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 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/ \
	public-inbox-index spp

Example config snippet for mirrors.
Newsgroup available over NNTP:

AGPL code for this site: git clone