install target: only install docs if building

Don't try to install HTML or PDF documentation if we're not building
docs.
This commit is contained in:
Jay Berkenbilt 2016-09-10 14:30:07 -04:00
parent 80988380cc
commit e8b845dd03
1 changed files with 7 additions and 3 deletions

View File

@ -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