summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2026-02-06 16:37:20 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2026-02-06 16:37:20 +0900
commitb844b1c4af8bb09946395e0d2186e47e1b370974 (patch)
tree0049eda5bb839f0369cd0a132960a4edd44fb47b
parent7dd6e31b9864a4c294530d9f52dea8e8da987778 (diff)
downloadkvirc-feat/use-script-to-generate-help-doc.tar.gz
kvirc-feat/use-script-to-generate-help-doc.zip
Use shell script to invoke gendoc.pl.feat/use-script-to-generate-help-doc
The reason for this is that gendoc.pl needs to be invoked with a list of all the .h and .cpp files. Some files are generated at build time and the coming cmake conversion can't use "file(GLOB)" to collect the lists of files. Rather than individual commands for collecting the list of files and invoke the gendoc.pl script, I added a small shell script that mirrors the original logic in the Makefile. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--Makefile.am6
-rwxr-xr-xdata/gendoc/run_gendoc.sh7
2 files changed, 8 insertions, 5 deletions
diff --git a/Makefile.am b/Makefile.am
index 40e3178f..d37c978f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -60,11 +60,7 @@ messages:
###############################################################################
docs:
- $(mkinstalldirs) $(DESTDIR)$(helpdir)
- perl data/gendoc/gendoc.pl -v $(VERSION) $(DESTDIR)$(helpdir) \
- data/doctemplates/*.template \
- `find ./ -name "*.cpp" -print` \
- `find ./ -name "*.h" -print`
+ data/gendoc/run_gendoc.sh $(VERSION) $(DESTDIR)$(helpdir)
###############################################################################
# Rule for developer documentation
diff --git a/data/gendoc/run_gendoc.sh b/data/gendoc/run_gendoc.sh
new file mode 100755
index 00000000..77cc26f8
--- /dev/null
+++ b/data/gendoc/run_gendoc.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+mkdir -p $2
+perl data/gendoc/gendoc.pl -v $1 $2 \
+ data/doctemplates/*.template \
+ `find ./ -name "*.cpp" -print` \
+ `find ./ -name "*.h" -print`