From 5323fa1029b754a07145a20cffa1d103470d26f8 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 8 May 2012 01:10:46 +0900 Subject: [PATCH] Honor DESTDIR when installing HTML version manual. Generate HTML version manual on `make install`. --- doc/manual-src/en/Makefile.am | 4 ++-- doc/manual-src/ru/Makefile.am | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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