Make: add distclean target.
This commit is contained in:
parent
5c774a3a1c
commit
e2c5431bfa
6
Makefile
6
Makefile
@ -51,7 +51,7 @@ UNIT_TEST_TARGET = $(BIN_DIR)/$(UNIT_TEST_SRC_DIR)/$(TARGET_FILE)
|
|||||||
|
|
||||||
THIS_MAKEFILE := $(lastword $(MAKEFILE_LIST))
|
THIS_MAKEFILE := $(lastword $(MAKEFILE_LIST))
|
||||||
|
|
||||||
.PHONY: all install uninstall clean
|
.PHONY: all install uninstall clean distclean
|
||||||
all: $(STATIC_LIB) $(DYNAMIC_LIB)
|
all: $(STATIC_LIB) $(DYNAMIC_LIB)
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
@ -76,6 +76,10 @@ clean:
|
|||||||
rm -f $(OBJ_DIR)/*.gcda $(OBJ_DIR)/*.gcno
|
rm -f $(OBJ_DIR)/*.gcda $(OBJ_DIR)/*.gcno
|
||||||
rm -fr $(COVERAGE_DIR)
|
rm -fr $(COVERAGE_DIR)
|
||||||
|
|
||||||
|
distclean:
|
||||||
|
rm -fr $(BIN_DIR) $(OBJ_DIR) $(LIB_DIR) $(COVERAGE_DIR)
|
||||||
|
|
||||||
|
|
||||||
.PHONY: coverage
|
.PHONY: coverage
|
||||||
coverage: _cov_genhtml
|
coverage: _cov_genhtml
|
||||||
$(eval COVERAGE:=$(shell grep 'lines' .coverage.tmp | egrep -o '[0-9]+.[0-9]+%'))
|
$(eval COVERAGE:=$(shell grep 'lines' .coverage.tmp | egrep -o '[0-9]+.[0-9]+%'))
|
||||||
|
Loading…
Reference in New Issue
Block a user