Skip to content

Commit 1759785

Browse files
committed
Mark targets as Phony
Make lint, lint-manual, and coverage as not producing a file. Remove targets.mk as a source for help messages in help target.
1 parent 2e44129 commit 1759785

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,19 +148,23 @@ bash zsh: venv
148148
bash zsh: ## Run bash or zsh with the venv activated
149149
$(ACTIVATE) exec $@
150150

151+
.PHONY: lint
151152
lint: venv
152153
lint: ## Run all configured tools in pre-commit
153154
$(PRE_COMMIT) run -a
154155

156+
.PHONY: lint-manual
155157
lint-manual: venv
156158
lint-manual: ## Run all manual tools in pre-commit
157159
$(PRE_COMMIT) run --hook-stage manual -a
158160

161+
.PHONY: coverage
162+
coverage: ## Build and run the tests with the GCOV profile and process the results
159163
coverage: venv
160164
$(MAKE) CONFIG=Gcov test
161-
$(ACTIVATE) cmake --build $(_build_path) --config $(CONFIG) --target process_coverage
165+
$(ACTIVATE) cmake --build $(_build_path) --config Gcov --target process_coverage
162166

163167
# Help target
164168
.PHONY: help
165169
help: ## Show this help.
166-
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) targets.mk | sort
170+
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) | sort

0 commit comments

Comments
 (0)