mk: Fix the regexp of SHOW_DOCS
The tag marks were missing, and `make tips` didn't work.
This commit is contained in:
parent
b0ce960609
commit
ece12d8da6
|
@ -103,7 +103,7 @@
|
||||||
#
|
#
|
||||||
# </tips>
|
# </tips>
|
||||||
#
|
#
|
||||||
# <nittygritty>
|
# <nitty-gritty>
|
||||||
#
|
#
|
||||||
# # The Rust Build System
|
# # The Rust Build System
|
||||||
#
|
#
|
||||||
|
@ -157,7 +157,7 @@
|
||||||
#
|
#
|
||||||
# Admittedly this is a little convoluted.
|
# Admittedly this is a little convoluted.
|
||||||
#
|
#
|
||||||
# </nittygritty>
|
# </nitty-gritty>
|
||||||
#
|
#
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
|
@ -446,13 +446,13 @@ all: $(ALL_TARGET_RULES) $(GENERATED) docs
|
||||||
# $(1) is the name of the doc <section> in Makefile.in
|
# $(1) is the name of the doc <section> in Makefile.in
|
||||||
# pick everything between tags | remove first line | remove last line
|
# pick everything between tags | remove first line | remove last line
|
||||||
# | remove extra (?) line | strip leading `#` from lines
|
# | remove extra (?) line | strip leading `#` from lines
|
||||||
SHOW_DOCS = $(Q)awk '/$(1)/,/<\/$(1)>/' $(S)/Makefile.in | sed '1d' | sed '$$d' | sed 's/^\# \?//'
|
SHOW_DOCS = $(Q)awk '/<$(1)>/,/<\/$(1)>/' $(S)/Makefile.in | sed '1d' | sed '$$d' | sed 's/^\# \?//'
|
||||||
|
|
||||||
help:
|
help:
|
||||||
$(call SHOW_DOCS,help)
|
$(call SHOW_DOCS,help)
|
||||||
|
|
||||||
hot-tips:
|
tips:
|
||||||
$(call SHOW_DOCS,hottips)
|
$(call SHOW_DOCS,tips)
|
||||||
|
|
||||||
nitty-gritty:
|
nitty-gritty:
|
||||||
$(call SHOW_DOCS,nittygritty)
|
$(call SHOW_DOCS,nitty-gritty)
|
||||||
|
|
Loading…
Reference in New Issue