aboutsummaryrefslogtreecommitdiffstats
path: root/manual
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-03-12 15:25:29 +0100
committerJay Berkenbilt <jberkenbilt@users.noreply.github.com>2022-03-19 00:53:18 +0100
commit70d0d0889b0c72bcdeb0658335094f61105f8b02 (patch)
tree52d274badef53895286fbcf9da57101667262a6f /manual
parent87db567e1f094cbc9118f7c8d215df157b1601b5 (diff)
downloadqpdf-70d0d0889b0c72bcdeb0658335094f61105f8b02.tar.zst
Remove old build files
Diffstat (limited to 'manual')
-rw-r--r--manual/Makefile1
-rw-r--r--manual/build.mk61
2 files changed, 0 insertions, 62 deletions
diff --git a/manual/Makefile b/manual/Makefile
deleted file mode 100644
index 90899055..00000000
--- a/manual/Makefile
+++ /dev/null
@@ -1 +0,0 @@
-include ../make/proxy.mk
diff --git a/manual/build.mk b/manual/build.mk
deleted file mode 100644
index 97ca94a3..00000000
--- a/manual/build.mk
+++ /dev/null
@@ -1,61 +0,0 @@
-DOC_OUT := manual/$(OUTPUT_DIR)
-S_HTML_OUT := $(DOC_OUT)/singlehtml
-S_HTML_TARGET := $(S_HTML_OUT)/index.html
-HTML_OUT := $(DOC_OUT)/html
-HTML_TARGET := $(HTML_OUT)/index.html
-PDF_OUT := $(DOC_OUT)/latex
-PDF_TARGET := $(PDF_OUT)/qpdf.pdf
-
-TARGETS_manual := \
- $(DOC_OUT)/qpdf.1 \
- $(DOC_OUT)/fix-qdf.1 \
- $(DOC_OUT)/zlib-flate.1
-ifeq ($(BUILD_HTML),1)
-TARGETS_manual += $(HTML_TARGET) $(S_HTML_TARGET)
-endif
-ifeq ($(BUILD_PDF),1)
-TARGETS_manual += $(PDF_TARGET)
-endif
-
-MANUAL_DEPS = $(wildcard manual/*.rst) manual/conf.py manual/_ext/qpdf.py
-
-# Prevent targets that run $(SPHINX) from running in parallel by using
-# order-only dependencies (the dependencies listed after the |) to
-# avoid clashes in temporary files that cause the build to fail with
-# the error "_pickle.UnpicklingError: pickle data was truncated"
-$(HTML_TARGET): $(MANUAL_DEPS)
- $(SPHINX) -M html manual $(DOC_OUT) -W
-
-$(S_HTML_TARGET): $(MANUAL_DEPS) | $(HTML_TARGET)
- $(SPHINX) -M singlehtml manual $(DOC_OUT) -W
-
-$(PDF_TARGET): $(MANUAL_DEPS) | $(S_HTML_TARGET) $(HTML_TARGET)
- $(SPHINX) -M latexpdf manual $(DOC_OUT) -W
-
-$(DOC_OUT)/%.1: manual/%.1.in
- sed -e 's:@PACKAGE_VERSION@:$(PACKAGE_VERSION):g' < $< > $@
-
-# The doc-dist target must not removed $(DOC_DEST) so that it works to
-# do stuff like make doc-dist DOC_DEST=$(DESTDIR)/$(docdir). Make sure
-# what this does is consistent with ../README-doc.txt and the
-# information in the manual and ../README.md.
-.PHONY: doc-dist
-doc-dist: build_manual
- @if test x"$(DOC_DEST)" = x; then \
- echo DOC_DEST must be set 1>& 2; \
- false; \
- fi
- if test -d $(DOC_DEST); then \
- $(RM) -rf $(DOC_DEST)/*html $(DOC_DEST)/*.pdf; \
- else \
- mkdir -p $(DOC_DEST); \
- fi
- if [ -d $(DOC_OUT)/html ]; then \
- cp -r $(DOC_OUT)/html $(DOC_DEST); \
- fi
- if [ -d $(DOC_OUT)/singlehtml ]; then \
- cp -r $(DOC_OUT)/singlehtml $(DOC_DEST); \
- fi
- if [ -f $(PDF_TARGET) ]; then \
- cp $(PDF_TARGET) $(DOC_DEST)/qpdf-manual.pdf; \
- fi