Skip to content

Commit 5859fc0

Browse files
committed
#754 Fix the PHONY make targets
Signed-off-by: Sven Strittmatter <sven.strittmatter@iteratec.com>
1 parent 168dae9 commit 5859fc0

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ SCANNERS_CHART_LIST := $(sort $(wildcard $(SCANNERS_DIR)/*/Chart.yaml))
1111

1212
all: help
1313

14-
.PHONY:
14+
.PHONY: npm-ci-all
1515
npm-ci-all: ## Runs npm ci in all node module subfolders.
1616
# This find construct is based on https://stackoverflow.com/questions/4210042/how-to-exclude-a-directory-in-find-command/4210072#4210072
1717
find . \( \
@@ -34,10 +34,11 @@ npm-ci-all: ## Runs npm ci in all node module subfolders.
3434
-iname package.json \
3535
-execdir npm ci \;
3636

37-
.PHONY:
37+
.PHONY: npm-test-all
3838
npm-test-all: ## Runs all Jest based test suites.
3939
npm test -- --testPathIgnorePatterns "/integration-tests/"
4040

41+
.PHONY: test-all
4142
test-all: ## Runs all makefile based test suites.
4243
@echo ".: ⚙ Installing the operator for makefile based testing."
4344
cd ./operator && $(MAKE) -s docker-build docker-export kind-import helm-deploy
@@ -49,7 +50,7 @@ test-all: ## Runs all makefile based test suites.
4950
cd -; \
5051
done;
5152

52-
.PHONY:
53+
.PHONY: readme
5354
readme: ## Generate README.md based on Chart.yaml and template.
5455
@echo ".: ⚙ Generate Helm Docs."
5556
helm-docs --template-files=$(HELM_DOCS_DIR)/templates.gotmpl --template-files=.helm-docs.gotmpl --template-files=$(HELM_DOCS_DIR)/README.md.gotmpl
@@ -144,7 +145,7 @@ else
144145
@echo "Scanner name not defined, please provide via make create-new-scanner NAME=NEW-SCANNER"
145146
endif
146147

147-
.PHONY:
148+
.PHONY: help
148149
help: ## Display this help screen.
149150
@grep -h -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | \
150151
awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

0 commit comments

Comments
 (0)