summaryrefslogtreecommitdiffstats
path: root/man
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2018-12-27 16:16:40 (EST)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2018-12-27 16:16:40 (EST)
commit9128234a6c5ba200f6fd8d6a80f094505748b6ab (patch)
tree9a6b1eefd431f490ed1b08ea35561e07578110c6 /man
parent9994f5da405c3d49560f7b20d7c64a95d8da2f86 (diff)
Move code from Makefile.am to man/local.mk
Diffstat (limited to 'man')
-rw-r--r--man/local.mk21
1 files changed, 19 insertions, 2 deletions
diff --git a/man/local.mk b/man/local.mk
index 5625b2e..8151f76 100644
--- a/man/local.mk
+++ b/man/local.mk
@@ -1,3 +1,5 @@
+MANUAL = Distribution Build System
+
#man1_sources = \
# opkbuild.1in \
# ob-checkbuilddeps.1in \
@@ -9,12 +11,27 @@
# ob-gencontrol.1in \
# ob-buildopk.1in \
# ob-genchanges.1in
-
+man1_MANS = $(man1_sources:.1in=.1)
man3_MANS = \
%reldir%/ob_parse_changelog.3 \
%reldir%/ob_parse_dep.3
-CLEANFILES += %reldir%/Tags
+SUFFIXES += .1in .1
+CLEANFILES += \
+ %reldir%/Tags \
+ $(man1_MANS) \
+ $(man3_MANS)
+EXTRA_DIST += \
+ $(man1_sources)
+
+do_subst = sed \
+ -e 's|@[@]PACKAGE_NAME[@]@|$(PACKAGE_NAME)|g' \
+ -e "s|@[@]PACKAGE_VERSION[@]@|$(PACKAGE_VERSION_GIT)|g" \
+ -e 's|@[@]PACKAGE_DESCRIPTION[@]@|$(MANUAL)|g'
+
+.1in.1:
+ $(AM_V_GEN)$(MKDIR_P) "$$(dirname $@)"
+ $(AM_V_at)$(do_subst) $< >$@
$(man3_MANS): %reldir%/Tags