diff options
Diffstat (limited to 'project/config')
-rw-r--r-- | project/config/cfgdefs.in | 6 | ||||
-rw-r--r-- | project/config/cfgdefs.sh | 12 |
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" |