Skip to content

Commit 1301839

Browse files
authored
chore: Set help target as default goal
Add explicit comments explaining the purpose of the `help` target and `.DEFAULT_GOAL`. This improves readability and makes the Makefile's behavior more transparent. PR-393#393
1 parent b18b63d commit 1301839

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
# the `make` command will point at the `scripts/make` shell script.
33
# This Makefile is just here to allow auto-completion in the terminal.
44

5+
# The first target in the makefile is the default goal when no targets are specified.
6+
# Having "help:" here above without any rule (nothing to do specified with a tab)
7+
# only adds dependencies to that target, that is defined through "$(actions):".
8+
# .DEFAULT_GOAL is not necessary here, but is really explicit about what is going on.
9+
help:
10+
.DEFAULT_GOAL: help
11+
512
actions = \
613
allrun \
714
changelog \

0 commit comments

Comments
 (0)