Temporarily remove PDF from dist_doc_DATA due to automake issue.

http://article.gmane.org/gmane.comp.sysutils.automake.general/13192

This means that it is still included in the distribution and
installed, but is only automatically (re)built when making a
new distribution - if stow.texi changes during development, it
has to be rebuilt manually via 'make pdf'.
This commit is contained in:
Adam Spiers 2011-12-03 01:30:08 +00:00
parent e3eeedc2c1
commit 6682aa9caf
3 changed files with 17 additions and 4 deletions

View file

@ -17,7 +17,6 @@ doc/ChangeLog.OLD
doc/stow.html doc/stow.html
doc/stow.8 doc/stow.8
doc/stow.info doc/stow.info
doc/stow.pdf
doc/stow.texi doc/stow.texi
doc/texinfo.tex doc/texinfo.tex
doc/version.texi doc/version.texi

View file

@ -77,6 +77,7 @@
^doc/stamp-vti$ ^doc/stamp-vti$
^doc/manual.texi$ ^doc/manual.texi$
^doc/manual.pdf$ ^doc/manual.pdf$
^doc/stow.pdf$
^doc/HOWTO-RELEASE$ ^doc/HOWTO-RELEASE$
^doc/manual\.html\b ^doc/manual\.html\b

View file

@ -5,7 +5,7 @@ info_TEXINFOS = doc/stow.texi
dist_man_MANS = doc/stow.8 dist_man_MANS = doc/stow.8
dist_doc_DATA = \ dist_doc_DATA = \
README \ README \
doc/stow.html doc/stow.pdf doc/version.texi \ doc/stow.html doc/version.texi \
ChangeLog doc/ChangeLog.OLD ChangeLog doc/ChangeLog.OLD
# Would be nice to include the split page HTML version of the manual # Would be nice to include the split page HTML version of the manual
@ -128,8 +128,8 @@ doc/stow.8: bin/stow Makefile
# jump through a few extra hoops. # jump through a few extra hoops.
install-data-hook: install-data-hook:
cd $(DESTDIR)$(docdir) && \ cd $(DESTDIR)$(docdir) && \
mv -f stow.html manual.html && \ mv -f stow.html manual.html
mv -f stow.pdf manual.pdf cp $(srcdir)/doc/stow.pdf $(DESTDIR)$(docdir)/manual.pdf
uninstall-hook: uninstall-hook:
rm -f $(DESTDIR)$(docdir)/manual.{html,pdf} rm -f $(DESTDIR)$(docdir)/manual.{html,pdf}
@ -147,3 +147,16 @@ ChangeLog: doc/ChangeLog.OLD Makefile
else \ else \
echo "Not in a git repository; can't update ChangeLog."; \ echo "Not in a git repository; can't update ChangeLog."; \
fi fi
# For website only; cannot currently be included in dist_doc_DATA
# because of:
#
# http://article.gmane.org/gmane.comp.sysutils.automake.general/13192
#
# This means that it is still included in the distribution and
# installed, but is only automatically (re)built when making a new
# distribution - if stow.texi changes during development, it has to be
# rebuilt manually via 'make pdf'.
dist-hook: pdf
pdf: doc/stow.pdf