From e2c5431bfa5102d593193ff99fbfb6b140abb299 Mon Sep 17 00:00:00 2001 From: Thomas Klaehn Date: Mon, 29 Jul 2019 13:38:32 +0200 Subject: [PATCH] Make: add distclean target. --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 256041c..efab9c3 100644 --- a/Makefile +++ b/Makefile @@ -51,7 +51,7 @@ UNIT_TEST_TARGET = $(BIN_DIR)/$(UNIT_TEST_SRC_DIR)/$(TARGET_FILE) THIS_MAKEFILE := $(lastword $(MAKEFILE_LIST)) -.PHONY: all install uninstall clean +.PHONY: all install uninstall clean distclean all: $(STATIC_LIB) $(DYNAMIC_LIB) install: all @@ -76,6 +76,10 @@ clean: rm -f $(OBJ_DIR)/*.gcda $(OBJ_DIR)/*.gcno rm -fr $(COVERAGE_DIR) +distclean: + rm -fr $(BIN_DIR) $(OBJ_DIR) $(LIB_DIR) $(COVERAGE_DIR) + + .PHONY: coverage coverage: _cov_genhtml $(eval COVERAGE:=$(shell grep 'lines' .coverage.tmp | egrep -o '[0-9]+.[0-9]+%'))