Skip to content

Commit 739f689

Browse files
committed
chore: use dependencies instead of recursive make calls
Signed-off-by: Nico Braun <rainbowstack@gmail.com>
1 parent c331ea6 commit 739f689

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

Makefile

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ linter ?= go run github.com/golangci/golangci-lint/cmd/golangci-lint
1010
##@ Commands
1111

1212
help: ## Display this help text
13-
@awk -f makehelp.awk $(MAKEFILE_LIST)
13+
@./Makehelp Makefile
1414

1515

1616
###@ Development
@@ -42,10 +42,6 @@ release-dryrun: tag ## same as release but local-only
4242

4343
###@ Pipeline
4444

45-
pipeline-validation: ## validatate the project
46-
$(MAKE) test
47-
$(MAKE) vet
48-
$(MAKE) build
45+
pipeline-validation: test vet build ## validatate the project
4946

50-
pipeline-release: ## release the project
51-
$(MAKE) release
47+
pipeline-release: release ## release the project

makehelp.awk renamed to Makehelp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
#!/usr/bin/env awk
1+
#!/usr/bin/env -S awk -f
2+
3+
# Usage: Makehelp <MAKEFILE>
24

35
# this script looks at the content of a given makefile
46
# and generates a helptext based on its content.
@@ -25,7 +27,7 @@ BEGIN {
2527

2628
# match sub-headings (###@ <heading>)
2729
/^###@/ {
28-
printf "\n\033[0m%s:\033[0m\n", substr($0, 5)
30+
printf "\n\033[0m%s:\033[0m\n", substr($0, 6)
2931
}
3032

3133
# match targets that contain a (target: ## <description>)

0 commit comments

Comments
 (0)