summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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`