From 7f7d05db60b34be1e39cc192166ad166d562a03a Mon Sep 17 00:00:00 2001 From: Shulhan Date: Fri, 18 May 2018 22:43:55 +0700 Subject: make: add task to clean and distclean --- Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d6894fc..12330de 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,8 @@ CPU_PROF:=cpu.prof MEM_PROF:=mem.prof .PHONY: all install lint -.PHONE: test test.prof coverbrowse +.PHONY: test test.prof coverbrowse +.PHONY: clean distclean all: install @@ -34,3 +35,11 @@ coverbrowse: $(COVER_HTML) lint: gometalinter ./... + +clean: + rm -rf $(COVER_OUT) $(COVER_HTML) + rm -f ./**/${CPU_PROF} + rm -f ./**/${MEM_PROF} + +distclean: clean + go clean -i ./... -- cgit v1.3