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 [thread overview]
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
next prev parent 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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).