From d65b5d67917a4880c7232d02b3f27ec6687cebab Mon Sep 17 00:00:00 2001 From: Piotr Tabor Date: Sun, 20 Sep 2020 14:06:13 +0200 Subject: [PATCH] Makefile: Improve the 'make clean' to remove all the tmp artifacts --- Makefile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 0d2211817..7169994f5 100644 --- a/Makefile +++ b/Makefile @@ -18,18 +18,15 @@ build: clean: rm -f ./codecov - rm -rf ./agent-* rm -rf ./covdir - rm -f ./*.coverprofile - rm -f ./*.log rm -f ./bin/Dockerfile-release rm -rf ./bin/etcd* rm -rf ./default.etcd rm -rf ./tests/e2e/default.etcd rm -rf ./release - rm -f ./snapshot/localhost:* - rm -f ./tools/etcd-dump-metrics/localhost:* - find ./ -name "127.0.0.1:*" -o -name "localhost:*" -delete + rm -rf ./coverage/*.err ./coverage/*.out + rm -rf ./tests/e2e/default.proxy + find ./ -name "127.0.0.1:*" -o -name "localhost:*" -o -name "*.log" -o -name "agent-*" -o -name "*.coverprofile" -o -name "testname-proxy-*" | xargs -r rm -r docker-clean: docker images