Skip to content

Commit 2eb15e9

Browse files
committed
Reformat comments based on JSDoc
1 parent 03f8f3a commit 2eb15e9

File tree

1 file changed

+25
-17
lines changed

1 file changed

+25
-17
lines changed

tools/make/lib/help/Makefile

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,41 +13,49 @@ FIND_MAKEFILES_FLAGS ?= \
1313

1414
# TARGETS #
1515

16-
# Print Makefile help.
16+
#/
17+
# Prints a `Makefile` help message.
1718
#
18-
# This target prints a help message and lists available targets.
19-
19+
# @example
20+
# make help
21+
#/
2022
help:
2123
$(QUIET) $(CAT) $(MAKE_USAGE)
2224

2325
.PHONY: help
2426

25-
26-
# List Makefile targets.
27+
#/
28+
# Prints a sorted list of `Makefile` rules.
2729
#
28-
# This target lists all Makefile targets.
30+
# ## Notes
2931
#
30-
# Note: the list of targets is NOT exhaustive, as it does not include targets which have not been explicitly declared PHONY targets and does not include targets declared via variables. These targets could be included by dumping the Makefile database `make -qp`, but not seen as necessary due to predominant use of PHONY.
31-
32-
list-targets:
32+
# - The list of rules is **not** exhaustive, as the list does **not** include rules which have not been explicitly declared PHONY targets and does **not** include rules declared via variables. These rules could be included by dumping the Makefile database `make -qp`, but this is not seen as necessary due to predominant use of `.PHONY`.
33+
#
34+
# @example
35+
# make list-rules
36+
#/
37+
list-rules:
3338
$(QUIET) find $(TOOLS_MAKE_DIR) $(FIND_MAKEFILES_FLAGS) \
3439
| xargs grep '^.PHONY: ' \
3540
| awk '{print $$2}' \
3641
| sort
3742

38-
.PHONY: list-targets
43+
.PHONY: list-rules
3944

40-
41-
# List Makefile stats targets.
45+
#/
46+
# Prints a sorted list of `Makefile` rules for computing project statistics.
4247
#
43-
# This target lists all Makefile targets for computing statistics.
48+
# ## Notes
4449
#
45-
# Note: the list of targets is NOT exhaustive, as it does not include targets which have not been explicitly declared PHONY targets and does not include targets declared via variables. These targets could be included by dumping the Makefile database `make -qp`, but not seen as necessary due to predominant use of PHONY.
46-
47-
list-stats-targets:
50+
# - The list of rules is **not** exhaustive, as the list does **not** include rules which have not been explicitly declared PHONY targets and does **not** include rules declared via variables. These rules could be included by dumping the Makefile database `make -qp`, but this is not seen as necessary due to predominant use of `.PHONY`.
51+
#
52+
# @example
53+
# make list-stats-rules
54+
#/
55+
list-stats-rules:
4856
$(QUIET) find $(TOOLS_MAKE_DIR) $(FIND_MAKEFILES_FLAGS) \
4957
| xargs grep '^.PHONY: stats-' \
5058
| awk '{print $$2}' \
5159
| sort
5260

53-
.PHONY: list-stats-targets
61+
.PHONY: list-stats-rules

0 commit comments

Comments
 (0)