[spp] [PATCH] makefile: add dist-clean task

ogawa.yasufumi at lab.ntt.co.jp ogawa.yasufumi at lab.ntt.co.jp
Fri Dec 21 05:10:26 CET 2018


From: Yasufumi Ogawa <ogawa.yasufumi at lab.ntt.co.jp>

`make clean` task does not remove all of files generated with make
command. This update is to add `make dist-clean` to do the task.

Signed-off-by: Yasufumi Ogawa <ogawa.yasufumi at lab.ntt.co.jp>
---
 GNUmakefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/GNUmakefile b/GNUmakefile
index fcf6a33..7c2b55a 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -21,6 +21,11 @@ showversion:
 # Compile RST documents
 DOC_ROOT = docs/guides
 
+.PHONY: dist-clean
+dist-clean:
+	make clean
+	rm -rf $(wildcard src/*/$(RTE_TARGET))
+
 .PHONY: doc
 doc: doc-all
 doc-all: doc-pdf doc-html
-- 
2.7.4



More information about the spp mailing list