From e8b845dd0344c797b58bfa31b810af53595d2599 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 10 Sep 2016 14:30:07 -0400 Subject: [PATCH] install target: only install docs if building Don't try to install HTML or PDF documentation if we're not building docs. --- make/libtool.mk | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/make/libtool.mk b/make/libtool.mk index 0d1d8bee..c6cf4e4d 100644 --- a/make/libtool.mk +++ b/make/libtool.mk @@ -126,7 +126,11 @@ install: all cp include/qpdf/*.h $(DESTDIR)$(includedir)/qpdf cp include/qpdf/*.hh $(DESTDIR)$(includedir)/qpdf cp doc/stylesheet.css $(DESTDIR)$(docdir) - cp doc/qpdf-manual.html $(DESTDIR)$(docdir) - cp doc/qpdf-manual.pdf $(DESTDIR)$(docdir) - cp doc/*.1 $(DESTDIR)$(mandir)/man1 cp libqpdf.pc $(DESTDIR)$(libdir)/pkgconfig + if [ $(BUILD_HTML) = 1 ]; then \ + cp doc/qpdf-manual.html $(DESTDIR)$(docdir); \ + fi + if [ $(BUILD_PDF) = 1 ]; then \ + cp doc/qpdf-manual.pdf $(DESTDIR)$(docdir); \ + fi + cp doc/*.1 $(DESTDIR)$(mandir)/man1