From 56d785bd006ab823caf39fc16e2ae6833ef2d780 Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Sat, 31 Mar 2018 13:12:54 -0700 Subject: Docs installation - Move downloading the pages from a website to a separate script, invoke as dist hook - Install manpage Signed-off-by: Alexey Neyman --- Makefile.am | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 2e98016e..e89523c0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -9,14 +9,25 @@ bin_SCRIPTS = ct-ng CLEANFILES = $(bin_SCRIPTS) EXTRA_DIST = ct-ng.in bootstrap +man1_MANS = docs/ct-ng.1 + # paths.sh generated by configure nobase_dist_pkgdata_DATA = $(verbatim_data) paths.sh + + do_subst = ( @SED@ \ -e 's,[@]docdir[@],$(docdir),g' \ -e 's,[@]pkgdatadir[@],$(pkgdatadir),g' \ -e 's,[@]pkglibexecdir[@],$(pkglibexecdir),g' \ + -e 's,[@]progname[@],'`echo ct-ng | sed '$(transform)'`',g' \ | $(SHELL) config.status --file=- ) ct-ng: ct-ng.in Makefile $(AM_V_GEN)$(do_subst) < $< >$@-t && chmod a-w,a+x $@-t && mv -f $@-t $@ + +docs/ct-ng.1: docs/ct-ng.1.in + $(AM_V_GEN)$(MKDIR_P) docs && $(do_subst) < $< >$@-t && mv -f $@-t $@ + +dist-hook: maintainer/download-docs.sh + $< $(top_distdir) -- cgit v1.2.3