diff --git a/Makefile.in b/Makefile.in
index 5e6e8f310c7..fb8b1ce9371 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -103,7 +103,7 @@
#
#
#
-#
+#
#
# # The Rust Build System
#
@@ -157,7 +157,7 @@
#
# Admittedly this is a little convoluted.
#
-#
+#
#
######################################################################
diff --git a/mk/main.mk b/mk/main.mk
index 53ba07e65cb..2c7c7c7cecd 100644
--- a/mk/main.mk
+++ b/mk/main.mk
@@ -446,13 +446,13 @@ all: $(ALL_TARGET_RULES) $(GENERATED) docs
# $(1) is the name of the doc in Makefile.in
# pick everything between tags | remove first line | remove last line
# | 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:
$(call SHOW_DOCS,help)
-hot-tips:
- $(call SHOW_DOCS,hottips)
+tips:
+ $(call SHOW_DOCS,tips)
nitty-gritty:
- $(call SHOW_DOCS,nittygritty)
+ $(call SHOW_DOCS,nitty-gritty)