diff --git a/Makefile b/Makefile index 3381e0754..19703432c 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ export DEV_PORT_HTTPS .PHONY: help # HELP: print out this help message help: - @echo "Nothing to see here, go away" + @utils/makehelp.pl Makefile .PHONY: all # HELP: unfinished diff --git a/utils/makehelp.pl b/utils/makehelp.pl index d3a81b3b8..aa742a7ea 100755 --- a/utils/makehelp.pl +++ b/utils/makehelp.pl @@ -5,6 +5,7 @@ use warnings; my %msg = (); my @start = (); +my %reorder = (help=>-1); READ: while(<>) { if(m/^# HELP HEADER START/) { @@ -34,7 +35,7 @@ READ: while(<>) { print "$_\n" for @start; print "\n" if @start; -for my $tar(sort keys %msg) { +for my $tar(sort {($reorder{$a}||0) <=> ($reorder{$b}||0) || $a cmp $b } keys %msg) { print "$tar\n $msg{$tar}\n\n" }