aboutsummaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2021-12-18 17:19:20 +0100
committerJay Berkenbilt <ejb@ql.org>2021-12-18 18:20:56 +0100
commit426b4ce8565e4f9143c122fd3afbcc22598fc6c4 (patch)
treef6871b378481cb421e317d13fad121f8dad31be2 /make
parenteb20b4d0cbdf42abb675566608f16f9a65a61c05 (diff)
downloadqpdf-426b4ce8565e4f9143c122fd3afbcc22598fc6c4.tar.zst
Update documentation build/installation
Diffstat (limited to 'make')
-rw-r--r--make/installwin.mk11
-rw-r--r--make/libtool.mk13
2 files changed, 12 insertions, 12 deletions
diff --git a/make/installwin.mk b/make/installwin.mk
index 4acf9e3f..af17ba81 100644
--- a/make/installwin.mk
+++ b/make/installwin.mk
@@ -17,11 +17,12 @@ installwin: all
cp qpdf/$(OUTPUT_DIR)/fix-qdf.exe $(DEST)/bin
cp include/qpdf/*.h $(DEST)/include/qpdf
cp include/qpdf/*.hh $(DEST)/include/qpdf
- if [ -f doc/qpdf-manual.html ]; then \
- mkdir $(DEST)/doc/_static; \
- cp doc/qpdf-manual.html $(DEST)/doc; \
- cp doc/_static/* $(DEST)/doc/_static; \
- fi
if [ -f doc/qpdf-manual.pdf ]; then \
cp doc/qpdf-manual.pdf $(DEST)/doc; \
fi
+ if [ -d doc/html ]; then \
+ cp -r doc/html $(DEST)/doc; \
+ fi
+ if [ -d doc/singlehtml ]; then \
+ cp -r doc/singlehtml $(DEST)/doc; \
+ fi
diff --git a/make/libtool.mk b/make/libtool.mk
index eda53732..e023bc60 100644
--- a/make/libtool.mk
+++ b/make/libtool.mk
@@ -121,8 +121,6 @@ install-libs: build_libqpdf
# NOTE: If installing any new executables, remember to update the
# lambda layer code in build-scripts/build-appimage.
-# NOTE: See comments in manual/build.mk about html documentation.
-
# Ensure that installwin in make/installwin.mk is consistent with
# this.
@@ -139,12 +137,13 @@ install: all install-libs
$(LIBTOOL) --mode=install ./install-sh \
qpdf/$(OUTPUT_DIR)/fix-qdf \
$(DESTDIR)$(bindir)/fix-qdf
- if [ -f doc/qpdf-manual.html ]; then \
- ./mkinstalldirs -m 0755 $(DESTDIR)$(docdir)/_static; \
- ./install-sh -m 0644 doc/qpdf-manual.html $(DESTDIR)$(docdir); \
- ./install-sh -m 0644 doc/_static/* $(DESTDIR)$(docdir)/_static; \
- fi
if [ -f doc/qpdf-manual.pdf ]; then \
./install-sh -m 0644 doc/qpdf-manual.pdf $(DESTDIR)$(docdir); \
fi
+ if [ -d doc/html ]; then \
+ cp -r doc/html $(DESTDIR)/$(docdir); \
+ fi
+ if [ -d doc/singlehtml ]; then \
+ cp -r doc/singlehtml $(DESTDIR)/$(docdir); \
+ fi
./install-sh -m 0644 doc/*.1 $(DESTDIR)$(mandir)/man1