diff --git a/doc/manual-src/en/Makefile.am b/doc/manual-src/en/Makefile.am index 4bf9b1d6..7b2352f3 100644 --- a/doc/manual-src/en/Makefile.am +++ b/doc/manual-src/en/Makefile.am @@ -15,11 +15,11 @@ ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . man_MANS = $(BUILDDIR)/man/aria2c.1 HTML = $(BUILDDIR)/html EXTRA_DIST = $(man_MANS) $(HTML) -HTMLINSTALLDIR = $(docdir)/manual/en +HTMLINSTALLDIR = $(DESTDIR)$(docdir)/manual/en # Copy $(BUILDDIR)/html recursively to the install dir. Since Automake # does not provide this feature, we do it ourselves. -install-data-local: +install-data-local: $(HTML) mkdir -p $(HTMLINSTALLDIR) && \ cp -r $(BUILDDIR)/html $(HTMLINSTALLDIR) && \ rm -f $(HTMLINSTALLDIR)/html/.buildinfo diff --git a/doc/manual-src/ru/Makefile.am b/doc/manual-src/ru/Makefile.am index 67352dab..63af7037 100644 --- a/doc/manual-src/ru/Makefile.am +++ b/doc/manual-src/ru/Makefile.am @@ -16,11 +16,11 @@ mandir = @mandir@/ru man_MANS = $(BUILDDIR)/man/aria2c.1 HTML = $(BUILDDIR)/html EXTRA_DIST = $(man_MANS) $(HTML) -HTMLINSTALLDIR = $(docdir)/manual/ru +HTMLINSTALLDIR = $(DESTDIR)$(docdir)/manual/ru # Copy $(BUILDDIR)/html recursively to the install dir. Since Automake # does not provide this feature, we do it ourselves. -install-data-local: +install-data-local: $(HTML) mkdir -p $(HTMLINSTALLDIR) && \ cp -r $(BUILDDIR)/html $(HTMLINSTALLDIR) && \ rm -f $(HTMLINSTALLDIR)/html/.buildinfo