From aca061e723e26d1815536c69e5691818aea260c7 Mon Sep 17 00:00:00 2001 From: wl Date: Fri, 4 Jan 2013 07:19:51 +0000 Subject: 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. --- contrib/mom/ChangeLog | 8 +++++++- 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 . * 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; \ -- cgit v1.2.1