diff options
author | Jay Berkenbilt <ejb@ql.org> | 2016-09-10 20:30:07 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2016-09-10 20:30:47 +0200 |
commit | e8b845dd0344c797b58bfa31b810af53595d2599 (patch) | |
tree | 782d4c1104a8314b93c1def76ef077058f039309 /make | |
parent | 80988380ccdad141db6c05ba3a9ff3b9e5e2c430 (diff) | |
download | qpdf-e8b845dd0344c797b58bfa31b810af53595d2599.tar.zst |
install target: only install docs if building
Don't try to install HTML or PDF documentation if we're not building
docs.
Diffstat (limited to 'make')
-rw-r--r-- | make/libtool.mk | 10 |
1 files 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 |