diff options
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 11 |
1 files changed, 11 insertions, 0 deletions
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) |