The previous command line to generate the tool_listhelp.c source file
broke with
2494b8dd5175cee7.
Make 'make listhelp' invoked in src/ generate it. Also update the
comment in the file to mention the right procedure.
Closes #12786
$(MANPAGE): $(DPAGES) $(SUPPORT) mainpage.idx Makefile.inc gen.pl
$(GEN)(rm -f $(MANPAGE) && cd $(srcdir) && @PERL@ ./gen.pl mainpage $(DPAGES) > $(builddir)/manpage.tmp && mv $(builddir)/manpage.tmp $(MANPAGE))
+
+listhelp:
+ ./gen.pl listhelp $(DPAGES) > $(top_builddir)/src/tool_listhelp.c
/*
* 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[] = {
$(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:
/*
* 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[] = {