From 1bbbd6ffb9e919801c3d4878eef0e03f5073b7a7 Mon Sep 17 00:00:00 2001 From: Ildar Sagdejev Date: Mon, 5 Jul 2021 03:30:19 -0400 Subject: [PATCH] add 'make clean' job to makefile --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 746ccd2..6d75a5b 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,6 @@ build: ensure-dir build-linux build-windows build-darwin compress -ensure-dir: - rm -rf bin +ensure-dir: clean mkdir bin build-linux: @@ -16,6 +15,9 @@ build-darwin: compress: cd ./bin && find . -name 'scrape*' | xargs -I{} tar czf {}.tar.gz {} +clean: + rm -rf bin + snap-clean: rm -f scrape_*_amd64.snap* snapcraft clean