Compare commits

...

No commits in common. "83b9943e23fc8b0644ed6aa0ba9b39eb0c91fbf7" and "9a3a671938b51d851d1b742a73fe0ee463868870" have entirely different histories.

2 changed files with 21 additions and 1 deletions

17
.vscode/tasks.json vendored
View File

@ -54,6 +54,23 @@
"isDefault": true "isDefault": true
} }
}, },
{
"label": "distclean",
"type":"shell",
"command": "make distclean -j8",
"problemMatcher": {
"base": "$gcc",
"owner": "gcc",
"fileLocation": [
"relative",
"${workspaceFolder}"
]
},
"group": {
"kind": "build",
"isDefault": true
}
},
{ {
"label": "build_unit_test", "label": "build_unit_test",
"type":"shell", "type":"shell",

View File

@ -55,7 +55,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
@ -80,6 +80,9 @@ 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]+%'))