From 646b445515488cda8f25b38fca17064c13f33348 Mon Sep 17 00:00:00 2001 From: Christophe Romain Date: Fri, 5 Sep 2014 17:10:58 +0200 Subject: [PATCH] allow guide not to be compiled for install --- Makefile.in | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile.in b/Makefile.in index 018ccd726..525879854 100644 --- a/Makefile.in +++ b/Makefile.in @@ -180,12 +180,16 @@ install: all # # Documentation $(INSTALL) -d $(DOCDIR) - $(INSTALL) -m 644 doc/dev.html $(DOCDIR) - $(INSTALL) -m 644 doc/guide.html $(DOCDIR) - $(INSTALL) -m 644 doc/*.png $(DOCDIR) + [ -f doc/dev.html ] \ + && $(INSTALL) -m 644 doc/dev.html $(DOCDIR) \ + || echo "No doc/dev.html was built" + [ -f doc/guide.html ] \ + && $(INSTALL) -m 644 doc/guide.html $(DOCDIR) \ + || echo "No doc/guide.html was built" [ -f doc/guide.pdf ] \ && $(INSTALL) -m 644 doc/guide.pdf $(DOCDIR) \ || echo "No doc/guide.pdf was built" + $(INSTALL) -m 644 doc/*.png $(DOCDIR) $(INSTALL) -m 644 COPYING $(DOCDIR) uninstall: uninstall-binary