summaryrefslogtreecommitdiff
path: root/project/config
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2020-02-02 02:15:49 +0000
committermidipix <writeonce@midipix.org>2020-02-01 22:24:37 +0000
commit01ddc0383a29ec23b773b968e878c6cac5ecc2b8 (patch)
treed9677baa767dfe8cbe6107ef12a08d957b1442bf /project/config
parent32e0b49a4c4b1608e5c573ce5379d0512d3dc952 (diff)
downloadbautomake-01ddc0383a29ec23b773b968e878c6cac5ecc2b8.tar.bz2
bautomake-01ddc0383a29ec23b773b968e878c6cac5ecc2b8.tar.xz
project: added logic for generation and installation of texinfo documents.
Diffstat (limited to 'project/config')
-rw-r--r--project/config/cfgdefs.in6
-rw-r--r--project/config/cfgdefs.sh12
2 files changed, 18 insertions, 0 deletions
diff --git a/project/config/cfgdefs.in b/project/config/cfgdefs.in
index 07ab405..d7bb4b9 100644
--- a/project/config/cfgdefs.in
+++ b/project/config/cfgdefs.in
@@ -8,3 +8,9 @@ AUTOMAKE_MICRO = @automake_micro@
# interpreters for aclocal & automake
HOST_PERL = @host_perl@
HOST_SH = @host_sh@
+
+# texinfo
+MAKEINFO = @makeinfo@
+
+all: @all_info@
+install: @install_info@
diff --git a/project/config/cfgdefs.sh b/project/config/cfgdefs.sh
index 9f327fa..4cf1ebc 100644
--- a/project/config/cfgdefs.sh
+++ b/project/config/cfgdefs.sh
@@ -54,6 +54,15 @@ cfgdefs_output_custom_defs()
{
mb_host_perl=${mb_host_perl:-/usr/bin/perl}
mb_host_sh=${mb_host_sh:-/usr/bin/sh}
+ mb_makeinfo=$(command -v makeinfo || true)
+
+ if [ -n "$mb_makeinfo" ]; then
+ mb_all_info='all-info-docs'
+ mb_install_info='install-info-docs'
+ else
+ mb_all_info=
+ mb_install_info=
+ fi
sed \
-e 's/@automake_ver@/'"$automake_ver"'/g' \
@@ -63,6 +72,9 @@ cfgdefs_output_custom_defs()
-e 's/@automake_micro@/'"$automake_micro"'/g' \
-e 's!@host_perl@!'"$mb_host_perl"'!g' \
-e 's!@host_sh@!'"$mb_host_sh"'!g' \
+ -e 's!@makeinfo@!'"$mb_makeinfo"'!g' \
+ -e 's!@all_info@!'"$mb_all_info"'!g' \
+ -e 's!@install_info@!'"$mb_install_info"'!g' \
"$mb_project_dir/project/config/cfgdefs.in" \
| sed -e 's/[ \t]*$//g' \
>> "$mb_pwd/cfgdefs.mk"