From e3fb75572122d8c9d4745375c0eedd1703019efa Mon Sep 17 00:00:00 2001 From: Victor Lin <13424970+victorlin@users.noreply.github.com> Date: Mon, 14 Oct 2024 17:44:55 -0700 Subject: [PATCH] Allow BUILDDIR to be set from environment No reason not to allow this. --- docs/Makefile | 4 ++-- docs/make.bat | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/Makefile b/docs/Makefile index 1518a91bb..9ba3af64c 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -2,11 +2,11 @@ # # You can set these variables from the command line, and also -# from the environment for the first two. +# from the environment for the first three. SPHINXOPTS ?= SPHINXBUILD ?= sphinx-build +BUILDDIR ?= _build SOURCEDIR = . -BUILDDIR = _build # Put it first so that "make" without argument is like "make help". help: diff --git a/docs/make.bat b/docs/make.bat index 2119f5109..24c26b229 100644 --- a/docs/make.bat +++ b/docs/make.bat @@ -7,8 +7,10 @@ REM Command file for Sphinx documentation if "%SPHINXBUILD%" == "" ( set SPHINXBUILD=sphinx-build ) +if "%BUILDDIR%" == "" ( + set BUILDDIR=_build +) set SOURCEDIR=. -set BUILDDIR=_build if "%1" == "" goto help