summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--project/config/cfgdefs.in6
-rw-r--r--project/config/cfgdefs.sh12
-rw-r--r--project/extras.mk2
-rw-r--r--project/infodoc.mk21
-rw-r--r--project/tree.mk2
5 files changed, 41 insertions, 2 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"
diff --git a/project/extras.mk b/project/extras.mk
index 9e74295..7363796 100644
--- a/project/extras.mk
+++ b/project/extras.mk
@@ -1,3 +1,3 @@
include $(PROJECT_DIR)/project/srcgen.mk
+include $(PROJECT_DIR)/project/infodoc.mk
include $(PROJECT_DIR)/project/install.mk
-
diff --git a/project/infodoc.mk b/project/infodoc.mk
new file mode 100644
index 0000000..7887163
--- /dev/null
+++ b/project/infodoc.mk
@@ -0,0 +1,21 @@
+# infodoc.mk: rules for texinfo document generation.
+# this file is covered by COPYING.BAUTOMAKE.
+
+AUTOMAKE_DEST_INFO_DIR = $(DESTDIR)$(DATADIR)/info
+
+INFO_GEN_DOCS = \
+ info/automake.info \
+ info/automake.info-1 \
+ info/automake.info-2 \
+ info/automake-history.info \
+
+
+info/%.info: $(SOURCE_DIR)/doc/%.texi host.tag tree.tag
+ $(MAKEINFO) $< -o $@
+
+
+all-info-docs: info/automake.info info/automake-history.info
+
+install-info-docs: all-info-docs
+ mkdir -p $(AUTOMAKE_DEST_INFO_DIR)
+ cp -p $(INFO_GEN_DOCS) $(AUTOMAKE_DEST_INFO_DIR)
diff --git a/project/tree.mk b/project/tree.mk
index 820ee8a..1207e90 100644
--- a/project/tree.mk
+++ b/project/tree.mk
@@ -1,4 +1,4 @@
-TREE_DIRS = m4 bin man lib lib/Automake
+TREE_DIRS = m4 bin info man lib lib/Automake
tree.tag:
mkdir -p $(TREE_DIRS)