diff --git a/docs/Makefile.am b/docs/Makefile.am index d9bdd176cc..96c876019a 100644 --- a/docs/Makefile.am +++ b/docs/Makefile.am @@ -34,7 +34,7 @@ endif # EXTRA_DIST breaks with $(abs_builddir) so build it using this variable # but distribute it (using the relative file name) in the next variable man_MANS = $(abs_builddir)/curl.1 -noinst_man_MANS = curl.1 $(MK_CA_DOCS) +noinst_man_MANS = $(MK_CA_DOCS) dist_man_MANS = $(CURLCONF_DOCS) $(MK_CA_DOCS) CURLPAGES = curl-config.md mk-ca-bundle.md @@ -133,3 +133,6 @@ curl-config.1: curl-config.md distclean: rm -f $(CLEANFILES) + +dist-hook: + cp $(builddir)/curl.1 $(builddir)/curl.1.dist