Commit e8b845dd0344c797b58bfa31b810af53595d2599
1 parent
80988380
install target: only install docs if building
Don't try to install HTML or PDF documentation if we're not building docs.
Showing
1 changed file
with
7 additions
and
3 deletions
make/libtool.mk
| @@ -126,7 +126,11 @@ install: all | @@ -126,7 +126,11 @@ install: all | ||
| 126 | cp include/qpdf/*.h $(DESTDIR)$(includedir)/qpdf | 126 | cp include/qpdf/*.h $(DESTDIR)$(includedir)/qpdf |
| 127 | cp include/qpdf/*.hh $(DESTDIR)$(includedir)/qpdf | 127 | cp include/qpdf/*.hh $(DESTDIR)$(includedir)/qpdf |
| 128 | cp doc/stylesheet.css $(DESTDIR)$(docdir) | 128 | cp doc/stylesheet.css $(DESTDIR)$(docdir) |
| 129 | - cp doc/qpdf-manual.html $(DESTDIR)$(docdir) | ||
| 130 | - cp doc/qpdf-manual.pdf $(DESTDIR)$(docdir) | ||
| 131 | - cp doc/*.1 $(DESTDIR)$(mandir)/man1 | ||
| 132 | cp libqpdf.pc $(DESTDIR)$(libdir)/pkgconfig | 129 | cp libqpdf.pc $(DESTDIR)$(libdir)/pkgconfig |
| 130 | + if [ $(BUILD_HTML) = 1 ]; then \ | ||
| 131 | + cp doc/qpdf-manual.html $(DESTDIR)$(docdir); \ | ||
| 132 | + fi | ||
| 133 | + if [ $(BUILD_PDF) = 1 ]; then \ | ||
| 134 | + cp doc/qpdf-manual.pdf $(DESTDIR)$(docdir); \ | ||
| 135 | + fi | ||
| 136 | + cp doc/*.1 $(DESTDIR)$(mandir)/man1 |