diff options
author | wl <wl> | 2013-01-04 07:19:51 +0000 |
---|---|---|
committer | wl <wl> | 2013-01-04 07:19:51 +0000 |
commit | aca061e723e26d1815536c69e5691818aea260c7 (patch) | |
tree | 81e57142df979b58e518eef2f291fb4ff6e5cb39 | |
parent | fb04a223065d62a4724148fde15e2555dc417f4a (diff) | |
download | groff-aca061e723e26d1815536c69e5691818aea260c7.tar.gz |
o Makefile.sub (install_data): Create directory for PDF documentation.
This is necesssary in case GhostScript is not available, and no other
PDF files have been created yet.
-rw-r--r-- | contrib/mom/ChangeLog | 8 | ||||
-rw-r--r-- | contrib/mom/Makefile.sub | 4 |
2 files changed, 10 insertions, 2 deletions
diff --git a/contrib/mom/ChangeLog b/contrib/mom/ChangeLog index bb219347..30402076 100644 --- a/contrib/mom/ChangeLog +++ b/contrib/mom/ChangeLog @@ -1,6 +1,12 @@ +* Fri Jan 4 2012 + +o Makefile.sub (install_data): Create directory for PDF documentation. + This is necesssary in case GhostScript is not available, and no other + PDF files have been created yet. + * Sun Dec 30 2012 -o Makefile.sub (install-data): Fix symlink. +o Makefile.sub (install_data): Fix symlink. Patch from Elias Pipping <pipping@lavabit.com>. * Thu Sep 20 2012 diff --git a/contrib/mom/Makefile.sub b/contrib/mom/Makefile.sub index 6dd7020e..e9563461 100644 --- a/contrib/mom/Makefile.sub +++ b/contrib/mom/Makefile.sub @@ -1,4 +1,4 @@ -# Copyright (C) 2002-2006, 2009, 2012 +# Copyright (C) 2002-2006, 2009, 2012-2013 # Free Software Foundation, Inc. # Written by Werner Lemberg (wl@gnu.org) # @@ -158,6 +158,8 @@ install_data: stamp-strip $(NORMALFILES) $(HTMLDOCFILES) \ rm -f $(DESTDIR)$(exampledir)/mom/$$f; \ $(INSTALL_DATA) examples/$$f $(DESTDIR)$(exampledir)/mom/$$f; \ done + -test -d $(DESTDIR)$(pdfdocdir) \ + || $(mkinstalldirs) $(DESTDIR)$(pdfdocdir) for f in $(PDFDOCFILE); do \ rm -f $(DESTDIR)$(pdfdocdir)/$$f; \ ln -s $(exampledir)/mom/$$f $(DESTDIR)$(pdfdocdir)/$$f; \ |