tool: fix the listhelp generation command

The previous command line to generate the tool_listhelp.c source file
broke with 2494b8dd51.

Make 'make listhelp' invoked in src/ generate it. Also update the
comment in the file to mention the right procedure.

Closes #12786
This commit is contained in:
Daniel Stenberg 2024-01-25 11:14:29 +01:00
parent 879a44084f
commit 52c4d8d3f4
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
4 changed files with 12 additions and 9 deletions

View file

@ -157,7 +157,7 @@ tidy:
$(TIDY) $(CURL_CFILES) $(TIDYFLAGS) -- $(curl_CPPFLAGS) $(CPPFLAGS) -DHAVE_CONFIG_H
listhelp:
(cd $(top_srcdir)/docs/cmdline-opts && ./gen.pl listhelp *.d) > tool_listhelp.c
(cd $(top_srcdir)/docs/cmdline-opts && make listhelp)
if HAVE_WINDRES
.rc.o:

View file

@ -26,10 +26,10 @@
/*
* DO NOT edit tool_listhelp.c manually.
* This source file is generated with the following command:
cd $srcroot/docs/cmdline-opts
./gen.pl listhelp *.d > $srcroot/src/tool_listhelp.c
* This source file is generated with the following command in an autotools
* build:
*
* "make listhelp"
*/
const struct helptxt helptext[] = {