summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2018-12-27 12:16:04 (EST)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2018-12-27 12:16:04 (EST)
commitf0a2fe581c174317f4b7233843fb771bd7afa843 (patch)
treec8c53743f55a6024e5189c0c16c1ae9470be1b9f
parent0008c151769dc23634ce7f814b36369773a060da (diff)
Makefile.am, man/local.mk: Build libopkbuild manual pages with shman
-rw-r--r--Makefile.am1
-rw-r--r--man/local.mk35
2 files changed, 10 insertions, 26 deletions
diff --git a/Makefile.am b/Makefile.am
index 2463707..5d7e6c3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -62,7 +62,6 @@ libopkbuild_dependencies = $(libopkbuild_ldadd)
libopkbuild_shsoversion = 2
man1_MANS = $(man1_sources:.1in=.1)
-man3_MANS = $(man3_sources:.3in=.3)
do_subst = sed \
-e 's|@[@]PACKAGE_NAME[@]@|$(PACKAGE_NAME)|g' \
-e "s|@[@]PACKAGE_VERSION[@]@|$(PACKAGE_VERSION_GIT)|g" \
diff --git a/man/local.mk b/man/local.mk
index 20550cc..9977b86 100644
--- a/man/local.mk
+++ b/man/local.mk
@@ -9,28 +9,13 @@
# ob-gencontrol.1in \
# ob-buildopk.1in \
# ob-genchanges.1in
-#man3_sources = \
-# ob_get_text_domain.3in \
-# ob_set_text_domain.3in \
-# ob_get_msg.3in \
-# ob_error.3in \
-# ob_warn.3in \
-# ob_info.3in \
-# ob_init_package.3in \
-# ob_parse_package_metadata.3in \
-# ob_get_binary_packages.3in \
-# ob_get_source_parameter.3in \
-# ob_get_binary_parameter.3in \
-# ob_summarize_package_arch.3in \
-# ob_summarize_package_plat.3in \
-# ob_parse_control.3in \
-# ob_parse_changelog.3in \
-# ob_validate_source_package_name.3in \
-# ob_validate_binary_package_name.3in \
-# ob_parse_version.3in \
-# ob_reduce_build_deps.3in \
-# ob_reduce_runinst_deps.3in \
-# ob_get_system_arch.3in \
-# ob_match_arch.3in \
-# ob_get_system_plat.3in \
-# ob_match_plat.3in
+
+man3_MANS = \
+ %reldir%/ob_parse_changelog.3 \
+ %reldir%/ob_parse_dep.3
+
+$(man3_MANS): %reldir%/Tags
+
+%reldir%/Tags: $(libopkbuild_sources) $(EXTRA_libopkbuild_sources)
+ tools/shman.sh -s "$(PACKAGE_STRING)" -m '$(MANUAL)' -d %reldir% -t $@ \
+ $(libopkbuild_sources) $(EXTRA_libopkbuild_sources)