-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
66 lines (58 loc) · 1.39 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
##
# Makefile help comments: how you can add easy documentation to a Makefile.
#
# A help comment starts with two hash marks, and ends with two hash marks.
# This syntax purposefully makes it easy for developers to convert any
# existing Makefile comments into help comments.
#
# Compared to other kinds of well-known make self-documentation tools,
# this implementation is simpler to use and also is much more flexible.
#
# To use this:
#
# make help
#
# https://github.com/sixarm/makefile-help-comments
##
##
# help: display this help message.
##
.PHONY: help
help:
@awk '/^##/{a=1-a}a' $(MAKEFILE_LIST) | cut -c3-
##
# You can write help comments anywhere you want,
# such as between tasks, like this help comment.
##
##
# alfa: echo the word alfa.
##
alfa:
@echo "alfa"
##
# You can write anything you want in a help comment,
# such as ASCII art, and whatever you write is displayed.
#
# ^__^
# (oo)\_______
# (__)\ )\/\
# ||----w |
# || ||
##
##
# bravo: echo the word bravo.
##
bravo:
@echo "bravo"
# This line is a normal comment.
# This line is another normal comment.
# These normal comments are not printed by the help task.
##
# charlie: echo the word charlie.
##
charlie:
@echo "charlie"
##
# If you wish, you can end with a footer comment with more information.
# To contact the author, email joel@joelparkerhenderson.com.
##