libtiff: doc: Do not pass srcdir and builddir to sphinx-build

From 661e747ab972a384933e99076c98fc91b18e3234 Mon Sep 17 00:00:00 2001
From: Roger Leigh <[EMAIL REDACTED]>
Date: Sun, 5 Jun 2022 11:21:00 +0100
Subject: [PATCH] doc: Do not pass srcdir and builddir to sphinx-build

---
 doc/CMakeLists.txt | 4 ----
 doc/Makefile.am    | 2 --
 2 files changed, 6 deletions(-)

diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index d337ca13..83b46fb8 100644
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -52,8 +52,6 @@ if (BUILD_SPHINX AND SPHINX_BUILD)
                        COMMAND ${SPHINX_BUILD}
                                -D "release=${LIBTIFF_VERSION_FULL}"
                                -D "version=${tiff_VERSION_MAJOR}.${tiff_VERSION_MINOR}"
-                               -D "srcdir=${sphinx_srcdir}"
-                               -D "builddir=${sphinx_builddir}"
                                -c "${sphinx_builddir}"
                                -d "${sphinx_builddir}/cache"
                                -b man
@@ -85,8 +83,6 @@ if (BUILD_SPHINX AND SPHINX_BUILD)
                      COMMAND ${SPHINX_BUILD}
                              -D "release=${tiff_VERSION}"
                              -D "version=${tiff_VERSION_MAJOR}.${tiff_VERSION_MINOR}"
-                             -D "srcdir=${sphinx_srcdir}"
-                             -D "builddir=${sphinx_builddir}"
                              -d "${sphinx_builddir}/cache"
                              -b html
                              "${sphinx_srcdir}" "${sphinx_builddir}/html"
diff --git a/doc/Makefile.am b/doc/Makefile.am
index e928621a..bac82ab7 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -31,8 +31,6 @@ doc-html:
 	$(SPHINX_BUILD) \
 	-D "release=$(LIBTIFF_VERSION)" \
 	-D "version=$(LIBTIFF_MAJOR_VERSION).$(LIBTIFF_MINOR_VERSION)" \
-	-D "srcdir=$(srcdir)" \
-	-D "builddir=$(builddir)" \
 	-d "$(builddir)/cache" \
 	-b html \
 	"$(srcdir)" "$(builddir)/html"