Honor DESTDIR when installing HTML version manual.

Generate HTML version manual on `make install`.
This commit is contained in:
Tatsuhiro Tsujikawa 2012-05-08 01:10:46 +09:00
parent a998e32f95
commit 5323fa1029
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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